@@ -4,9 +4,9 @@ discard block |
||
| 4 | 4 | * Implementation of hook_flag_default_flags(). |
| 5 | 5 | */ |
| 6 | 6 | function friends_flag_default_flags() { |
| 7 | - $flags = array(); |
|
| 8 | - // Exported flag: "Friend". |
|
| 9 | - $flags['friend'] = array( |
|
| 7 | + $flags = array(); |
|
| 8 | + // Exported flag: "Friend". |
|
| 9 | + $flags['friend'] = array( |
|
| 10 | 10 | 'content_type' => 'user', |
| 11 | 11 | 'title' => 'Friend', |
| 12 | 12 | 'global' => FALSE, |
@@ -20,12 +20,12 @@ discard block |
||
| 20 | 20 | 'unflag_denied_text' => '', |
| 21 | 21 | 'link_type' => 'confirm', |
| 22 | 22 | 'roles' => array( |
| 23 | - 'flag' => array( |
|
| 23 | + 'flag' => array( |
|
| 24 | 24 | '0' => 2, |
| 25 | - ), |
|
| 26 | - 'unflag' => array( |
|
| 25 | + ), |
|
| 26 | + 'unflag' => array( |
|
| 27 | 27 | '0' => 2, |
| 28 | - ), |
|
| 28 | + ), |
|
| 29 | 29 | ), |
| 30 | 30 | 'weight' => 0, |
| 31 | 31 | 'show_on_profile' => 1, |
@@ -34,11 +34,11 @@ discard block |
||
| 34 | 34 | 'unflag_confirmation' => 'Remove [display-name] as a friend?', |
| 35 | 35 | 'module' => 'friends', |
| 36 | 36 | 'locked' => array( |
| 37 | - '0' => 'name', |
|
| 37 | + '0' => 'name', |
|
| 38 | 38 | ), |
| 39 | 39 | 'api_version' => 2, |
| 40 | - ); |
|
| 41 | - return $flags; |
|
| 40 | + ); |
|
| 41 | + return $flags; |
|
| 42 | 42 | |
| 43 | 43 | } |
| 44 | 44 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | * Implementation of hook_views_api(). |
| 47 | 47 | */ |
| 48 | 48 | function friends_views_api() { |
| 49 | - return array( |
|
| 49 | + return array( |
|
| 50 | 50 | 'api' => '2', |
| 51 | - ); |
|
| 51 | + ); |
|
| 52 | 52 | } |
@@ -4,16 +4,16 @@ |
||
| 4 | 4 | * Implementation of hook_user_default_permissions(). |
| 5 | 5 | */ |
| 6 | 6 | function friends_user_default_permissions() { |
| 7 | - $permissions = array(); |
|
| 7 | + $permissions = array(); |
|
| 8 | 8 | |
| 9 | - // Exported permission: receive friend email notification |
|
| 10 | - $permissions['receive friend email notification'] = array( |
|
| 9 | + // Exported permission: receive friend email notification |
|
| 10 | + $permissions['receive friend email notification'] = array( |
|
| 11 | 11 | 'name' => 'receive friend email notification', |
| 12 | 12 | 'roles' => array( |
| 13 | - '0' => 'administrator', |
|
| 14 | - '1' => 'authenticated user', |
|
| 13 | + '0' => 'administrator', |
|
| 14 | + '1' => 'authenticated user', |
|
| 15 | 15 | ), |
| 16 | - ); |
|
| 16 | + ); |
|
| 17 | 17 | |
| 18 | - return $permissions; |
|
| 18 | + return $permissions; |
|
| 19 | 19 | } |
@@ -4,17 +4,17 @@ |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function work_and_host_stats_ctools_plugin_api() { |
| 7 | - list($module, $api) = func_get_args(); |
|
| 8 | - if ($module == "page_manager" && $api == "pages_default") { |
|
| 7 | + list($module, $api) = func_get_args(); |
|
| 8 | + if ($module == "page_manager" && $api == "pages_default") { |
|
| 9 | 9 | return array("version" => 1); |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | } |
| 12 | 12 | |
| 13 | 13 | /** |
| 14 | 14 | * Implementation of hook_views_api(). |
| 15 | 15 | */ |
| 16 | 16 | function work_and_host_stats_views_api() { |
| 17 | - return array( |
|
| 17 | + return array( |
|
| 18 | 18 | 'api' => '2', |
| 19 | - ); |
|
| 19 | + ); |
|
| 20 | 20 | } |
@@ -4,30 +4,30 @@ |
||
| 4 | 4 | * Implementation of hook_context_default_contexts(). |
| 5 | 5 | */ |
| 6 | 6 | function user_profiles_context_default_contexts() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $context = new stdClass; |
|
| 10 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
| 11 | - $context->api_version = 3; |
|
| 12 | - $context->name = 'account--profile--form'; |
|
| 13 | - $context->description = 'Set the account context for the profile form'; |
|
| 14 | - $context->tag = ''; |
|
| 15 | - $context->conditions = array( |
|
| 9 | + $context = new stdClass; |
|
| 10 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
| 11 | + $context->api_version = 3; |
|
| 12 | + $context->name = 'account--profile--form'; |
|
| 13 | + $context->description = 'Set the account context for the profile form'; |
|
| 14 | + $context->tag = ''; |
|
| 15 | + $context->conditions = array( |
|
| 16 | 16 | 'path' => array( |
| 17 | - 'values' => array( |
|
| 17 | + 'values' => array( |
|
| 18 | 18 | 'account/info/edit/*' => 'account/info/edit/*', |
| 19 | - ), |
|
| 19 | + ), |
|
| 20 | 20 | ), |
| 21 | - ); |
|
| 22 | - $context->reactions = array( |
|
| 21 | + ); |
|
| 22 | + $context->reactions = array( |
|
| 23 | 23 | 'menu' => 'user/me/edit', |
| 24 | - ); |
|
| 25 | - $context->condition_mode = 0; |
|
| 24 | + ); |
|
| 25 | + $context->condition_mode = 0; |
|
| 26 | 26 | |
| 27 | - // Translatables |
|
| 28 | - // Included for use with string extractors like potx. |
|
| 29 | - t('Set the account context for the profile form'); |
|
| 30 | - $export['account--profile--form'] = $context; |
|
| 27 | + // Translatables |
|
| 28 | + // Included for use with string extractors like potx. |
|
| 29 | + t('Set the account context for the profile form'); |
|
| 30 | + $export['account--profile--form'] = $context; |
|
| 31 | 31 | |
| 32 | - return $export; |
|
| 32 | + return $export; |
|
| 33 | 33 | } |
@@ -4,676 +4,676 @@ |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function user_profiles_ctools_plugin_api() { |
| 7 | - list($module, $api) = func_get_args(); |
|
| 8 | - if ($module == "context" && $api == "context") { |
|
| 7 | + list($module, $api) = func_get_args(); |
|
| 8 | + if ($module == "context" && $api == "context") { |
|
| 9 | 9 | return array("version" => 3); |
| 10 | - } |
|
| 11 | - elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 10 | + } |
|
| 11 | + elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 12 | 12 | return array("version" => 1); |
| 13 | - } |
|
| 14 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 13 | + } |
|
| 14 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 15 | 15 | return array("version" => 1); |
| 16 | - } |
|
| 16 | + } |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
| 20 | 20 | * Implementation of hook_node_info(). |
| 21 | 21 | */ |
| 22 | 22 | function user_profiles_node_info() { |
| 23 | - $items = array( |
|
| 23 | + $items = array( |
|
| 24 | 24 | 'profile' => array( |
| 25 | - 'name' => t('Profile'), |
|
| 26 | - 'module' => 'features', |
|
| 27 | - 'description' => t('A user profile built as content.'), |
|
| 28 | - 'has_title' => '1', |
|
| 29 | - 'title_label' => t('Title'), |
|
| 30 | - 'has_body' => '1', |
|
| 31 | - 'body_label' => t('Body'), |
|
| 32 | - 'min_word_count' => '0', |
|
| 33 | - 'help' => '', |
|
| 25 | + 'name' => t('Profile'), |
|
| 26 | + 'module' => 'features', |
|
| 27 | + 'description' => t('A user profile built as content.'), |
|
| 28 | + 'has_title' => '1', |
|
| 29 | + 'title_label' => t('Title'), |
|
| 30 | + 'has_body' => '1', |
|
| 31 | + 'body_label' => t('Body'), |
|
| 32 | + 'min_word_count' => '0', |
|
| 33 | + 'help' => '', |
|
| 34 | 34 | ), |
| 35 | - ); |
|
| 36 | - return $items; |
|
| 35 | + ); |
|
| 36 | + return $items; |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |
| 40 | 40 | * Implementation of hook_rules_defaults(). |
| 41 | 41 | */ |
| 42 | 42 | function user_profiles_rules_defaults() { |
| 43 | - return array( |
|
| 43 | + return array( |
|
| 44 | 44 | 'rules' => array( |
| 45 | - 'rules_new_user_profile_has_been_created' => array( |
|
| 45 | + 'rules_new_user_profile_has_been_created' => array( |
|
| 46 | 46 | '#type' => 'rule', |
| 47 | 47 | '#set' => 'event_node_insert', |
| 48 | 48 | '#label' => 'New user profile has been created', |
| 49 | 49 | '#active' => 1, |
| 50 | 50 | '#weight' => '0', |
| 51 | 51 | '#categories' => array( |
| 52 | - '0' => 'moderation queue', |
|
| 53 | - 'user_profiles' => 'user_profiles', |
|
| 52 | + '0' => 'moderation queue', |
|
| 53 | + 'user_profiles' => 'user_profiles', |
|
| 54 | 54 | ), |
| 55 | 55 | '#status' => 'default', |
| 56 | 56 | '#conditions' => array( |
| 57 | - '0' => array( |
|
| 57 | + '0' => array( |
|
| 58 | 58 | '#weight' => 0, |
| 59 | 59 | '#info' => array( |
| 60 | - 'label' => 'Created content is Profile', |
|
| 61 | - 'arguments' => array( |
|
| 60 | + 'label' => 'Created content is Profile', |
|
| 61 | + 'arguments' => array( |
|
| 62 | 62 | 'node' => array( |
| 63 | - 'type' => 'node', |
|
| 64 | - 'label' => 'Content', |
|
| 63 | + 'type' => 'node', |
|
| 64 | + 'label' => 'Content', |
|
| 65 | + ), |
|
| 65 | 66 | ), |
| 66 | - ), |
|
| 67 | - 'module' => 'Node', |
|
| 67 | + 'module' => 'Node', |
|
| 68 | 68 | ), |
| 69 | 69 | '#name' => 'rules_condition_content_is_type', |
| 70 | 70 | '#settings' => array( |
| 71 | - 'type' => array( |
|
| 71 | + 'type' => array( |
|
| 72 | 72 | 'profile' => 'profile', |
| 73 | - ), |
|
| 74 | - '#argument map' => array( |
|
| 73 | + ), |
|
| 74 | + '#argument map' => array( |
|
| 75 | 75 | 'node' => 'node', |
| 76 | - ), |
|
| 76 | + ), |
|
| 77 | 77 | ), |
| 78 | 78 | '#type' => 'condition', |
| 79 | - ), |
|
| 80 | - '1' => array( |
|
| 79 | + ), |
|
| 80 | + '1' => array( |
|
| 81 | 81 | '#settings' => array( |
| 82 | - 'roles' => array( |
|
| 82 | + 'roles' => array( |
|
| 83 | 83 | '0' => 1271379760, |
| 84 | - ), |
|
| 85 | - 'operation' => 'OR', |
|
| 86 | - '#argument map' => array( |
|
| 84 | + ), |
|
| 85 | + 'operation' => 'OR', |
|
| 86 | + '#argument map' => array( |
|
| 87 | 87 | 'user' => 'user', |
| 88 | - ), |
|
| 88 | + ), |
|
| 89 | 89 | ), |
| 90 | 90 | '#type' => 'condition', |
| 91 | 91 | '#name' => 'rules_condition_user_hasrole', |
| 92 | 92 | '#info' => array( |
| 93 | - 'label' => 'User has role(s)', |
|
| 94 | - 'arguments' => array( |
|
| 93 | + 'label' => 'User has role(s)', |
|
| 94 | + 'arguments' => array( |
|
| 95 | 95 | 'user' => array( |
| 96 | - 'type' => 'user', |
|
| 97 | - 'label' => 'User', |
|
| 96 | + 'type' => 'user', |
|
| 97 | + 'label' => 'User', |
|
| 98 | 98 | ), |
| 99 | - ), |
|
| 100 | - 'module' => 'User', |
|
| 99 | + ), |
|
| 100 | + 'module' => 'User', |
|
| 101 | 101 | ), |
| 102 | 102 | '#weight' => 0, |
| 103 | 103 | '#negate' => 1, |
| 104 | - ), |
|
| 105 | - '2' => array( |
|
| 104 | + ), |
|
| 105 | + '2' => array( |
|
| 106 | 106 | '#type' => 'OR', |
| 107 | 107 | '0' => array( |
| 108 | - '#info' => array( |
|
| 108 | + '#info' => array( |
|
| 109 | 109 | 'label' => 'Created content\'s field \'field_background\' has value', |
| 110 | 110 | 'arguments' => array( |
| 111 | - 'node' => array( |
|
| 111 | + 'node' => array( |
|
| 112 | 112 | 'type' => 'node', |
| 113 | 113 | 'label' => 'Content', |
| 114 | - ), |
|
| 114 | + ), |
|
| 115 | 115 | ), |
| 116 | 116 | 'eval input' => array( |
| 117 | - '0' => 'code', |
|
| 118 | - '1' => 'value|0|value', |
|
| 119 | - '2' => 'value|0|format', |
|
| 117 | + '0' => 'code', |
|
| 118 | + '1' => 'value|0|value', |
|
| 119 | + '2' => 'value|0|format', |
|
| 120 | 120 | ), |
| 121 | 121 | 'module' => 'CCK', |
| 122 | - ), |
|
| 123 | - '#negate' => 1, |
|
| 124 | - '#name' => 'content_rules_field_has_value', |
|
| 125 | - '#settings' => array( |
|
| 122 | + ), |
|
| 123 | + '#negate' => 1, |
|
| 124 | + '#name' => 'content_rules_field_has_value', |
|
| 125 | + '#settings' => array( |
|
| 126 | 126 | 'field_name' => 'field_background', |
| 127 | 127 | '#argument map' => array( |
| 128 | - 'node' => 'node', |
|
| 128 | + 'node' => 'node', |
|
| 129 | 129 | ), |
| 130 | 130 | 'value' => array( |
| 131 | - '0' => array( |
|
| 131 | + '0' => array( |
|
| 132 | 132 | 'value' => '', |
| 133 | 133 | 'format' => '4', |
| 134 | - ), |
|
| 134 | + ), |
|
| 135 | 135 | ), |
| 136 | 136 | 'code' => 'return array( |
| 137 | 137 | 0 => array(\'value\' => NULL, \'format\' => NULL), |
| 138 | 138 | );', |
| 139 | 139 | 'vars' => array(), |
| 140 | 140 | '#eval input' => array( |
| 141 | - 'token_rules_input_evaluator' => array( |
|
| 141 | + 'token_rules_input_evaluator' => array( |
|
| 142 | 142 | 'code' => array( |
| 143 | - '0' => ':global', |
|
| 143 | + '0' => ':global', |
|
| 144 | 144 | ), |
| 145 | 145 | 'value|0|value' => array( |
| 146 | - '0' => ':global', |
|
| 146 | + '0' => ':global', |
|
| 147 | 147 | ), |
| 148 | 148 | 'value|0|format' => array( |
| 149 | - '0' => ':global', |
|
| 149 | + '0' => ':global', |
|
| 150 | + ), |
|
| 150 | 151 | ), |
| 151 | - ), |
|
| 152 | 152 | ), |
| 153 | - ), |
|
| 154 | - '#weight' => 0, |
|
| 155 | - '#type' => 'condition', |
|
| 153 | + ), |
|
| 154 | + '#weight' => 0, |
|
| 155 | + '#type' => 'condition', |
|
| 156 | 156 | ), |
| 157 | 157 | '#weight' => 0, |
| 158 | 158 | '1' => array( |
| 159 | - '#negate' => 1, |
|
| 160 | - '#weight' => 0, |
|
| 161 | - '#info' => array( |
|
| 159 | + '#negate' => 1, |
|
| 160 | + '#weight' => 0, |
|
| 161 | + '#info' => array( |
|
| 162 | 162 | 'label' => 'Created content\'s field \'field_opinions\' has value', |
| 163 | 163 | 'arguments' => array( |
| 164 | - 'node' => array( |
|
| 164 | + 'node' => array( |
|
| 165 | 165 | 'type' => 'node', |
| 166 | 166 | 'label' => 'Content', |
| 167 | - ), |
|
| 167 | + ), |
|
| 168 | 168 | ), |
| 169 | 169 | 'eval input' => array( |
| 170 | - '0' => 'code', |
|
| 171 | - '1' => 'value|0|value', |
|
| 172 | - '2' => 'value|0|format', |
|
| 170 | + '0' => 'code', |
|
| 171 | + '1' => 'value|0|value', |
|
| 172 | + '2' => 'value|0|format', |
|
| 173 | 173 | ), |
| 174 | 174 | 'module' => 'CCK', |
| 175 | - ), |
|
| 176 | - '#name' => 'content_rules_field_has_value', |
|
| 177 | - '#settings' => array( |
|
| 175 | + ), |
|
| 176 | + '#name' => 'content_rules_field_has_value', |
|
| 177 | + '#settings' => array( |
|
| 178 | 178 | 'field_name' => 'field_opinions', |
| 179 | 179 | '#argument map' => array( |
| 180 | - 'node' => 'node', |
|
| 180 | + 'node' => 'node', |
|
| 181 | 181 | ), |
| 182 | 182 | 'value' => array( |
| 183 | - '0' => array( |
|
| 183 | + '0' => array( |
|
| 184 | 184 | 'value' => '', |
| 185 | 185 | 'format' => '4', |
| 186 | - ), |
|
| 186 | + ), |
|
| 187 | 187 | ), |
| 188 | 188 | 'code' => 'return array( |
| 189 | 189 | 0 => array(\'value\' => NULL, \'format\' => NULL), |
| 190 | 190 | );', |
| 191 | 191 | 'vars' => array(), |
| 192 | 192 | '#eval input' => array( |
| 193 | - 'token_rules_input_evaluator' => array( |
|
| 193 | + 'token_rules_input_evaluator' => array( |
|
| 194 | 194 | 'code' => array( |
| 195 | - '0' => ':global', |
|
| 195 | + '0' => ':global', |
|
| 196 | 196 | ), |
| 197 | 197 | 'value|0|value' => array( |
| 198 | - '0' => ':global', |
|
| 198 | + '0' => ':global', |
|
| 199 | 199 | ), |
| 200 | 200 | 'value|0|format' => array( |
| 201 | - '0' => ':global', |
|
| 201 | + '0' => ':global', |
|
| 202 | 202 | ), |
| 203 | - ), |
|
| 203 | + ), |
|
| 204 | + ), |
|
| 204 | 205 | ), |
| 205 | - ), |
|
| 206 | - '#type' => 'condition', |
|
| 206 | + '#type' => 'condition', |
|
| 207 | 207 | ), |
| 208 | 208 | '2' => array( |
| 209 | - '#type' => 'condition', |
|
| 210 | - '#settings' => array( |
|
| 209 | + '#type' => 'condition', |
|
| 210 | + '#settings' => array( |
|
| 211 | 211 | 'field_name' => 'field_url', |
| 212 | 212 | '#argument map' => array( |
| 213 | - 'node' => 'node', |
|
| 213 | + 'node' => 'node', |
|
| 214 | 214 | ), |
| 215 | 215 | 'value' => array( |
| 216 | - '0' => array( |
|
| 216 | + '0' => array( |
|
| 217 | 217 | 'value' => '', |
| 218 | - ), |
|
| 218 | + ), |
|
| 219 | 219 | ), |
| 220 | 220 | 'code' => 'return array( |
| 221 | 221 | 0 => array(\'value\' => NULL), |
| 222 | 222 | );', |
| 223 | 223 | 'vars' => array(), |
| 224 | 224 | '#eval input' => array( |
| 225 | - 'token_rules_input_evaluator' => array( |
|
| 225 | + 'token_rules_input_evaluator' => array( |
|
| 226 | 226 | 'code' => array( |
| 227 | - '0' => ':global', |
|
| 227 | + '0' => ':global', |
|
| 228 | 228 | ), |
| 229 | 229 | 'value|0|value' => array( |
| 230 | - '0' => ':global', |
|
| 230 | + '0' => ':global', |
|
| 231 | + ), |
|
| 231 | 232 | ), |
| 232 | - ), |
|
| 233 | 233 | ), |
| 234 | - ), |
|
| 235 | - '#name' => 'content_rules_field_has_value', |
|
| 236 | - '#negate' => 1, |
|
| 237 | - '#info' => array( |
|
| 234 | + ), |
|
| 235 | + '#name' => 'content_rules_field_has_value', |
|
| 236 | + '#negate' => 1, |
|
| 237 | + '#info' => array( |
|
| 238 | 238 | 'label' => 'Created content\'s field \'field_url\' has value', |
| 239 | 239 | 'arguments' => array( |
| 240 | - 'node' => array( |
|
| 240 | + 'node' => array( |
|
| 241 | 241 | 'type' => 'node', |
| 242 | 242 | 'label' => 'Content', |
| 243 | - ), |
|
| 243 | + ), |
|
| 244 | 244 | ), |
| 245 | 245 | 'eval input' => array( |
| 246 | - '0' => 'code', |
|
| 247 | - '1' => 'value|0|value', |
|
| 246 | + '0' => 'code', |
|
| 247 | + '1' => 'value|0|value', |
|
| 248 | 248 | ), |
| 249 | 249 | 'module' => 'CCK', |
| 250 | - ), |
|
| 251 | - '#weight' => 0, |
|
| 250 | + ), |
|
| 251 | + '#weight' => 0, |
|
| 252 | 252 | ), |
| 253 | 253 | '5' => array( |
| 254 | - '#type' => 'condition', |
|
| 255 | - '#settings' => array( |
|
| 254 | + '#type' => 'condition', |
|
| 255 | + '#settings' => array( |
|
| 256 | 256 | 'boolean' => '<?php echo ($node->field_image[0][\'fid\'] ? 1 : 0); ?>', |
| 257 | 257 | '#eval input' => array( |
| 258 | - 'token_rules_input_evaluator' => array( |
|
| 258 | + 'token_rules_input_evaluator' => array( |
|
| 259 | 259 | 'boolean' => array( |
| 260 | - '0' => ':global', |
|
| 260 | + '0' => ':global', |
|
| 261 | + ), |
|
| 261 | 262 | ), |
| 262 | - ), |
|
| 263 | - 'rules_input_evaluator_php' => array( |
|
| 263 | + 'rules_input_evaluator_php' => array( |
|
| 264 | 264 | 'boolean' => array( |
| 265 | - '0' => 'node', |
|
| 265 | + '0' => 'node', |
|
| 266 | + ), |
|
| 266 | 267 | ), |
| 267 | - ), |
|
| 268 | 268 | ), |
| 269 | - ), |
|
| 270 | - '#name' => 'rules_condition_check_boolean', |
|
| 271 | - '#info' => array( |
|
| 269 | + ), |
|
| 270 | + '#name' => 'rules_condition_check_boolean', |
|
| 271 | + '#info' => array( |
|
| 272 | 272 | 'label' => 'New profile has avatar', |
| 273 | 273 | 'label callback' => FALSE, |
| 274 | 274 | 'arguments' => array( |
| 275 | - 'boolean' => array( |
|
| 275 | + 'boolean' => array( |
|
| 276 | 276 | 'type' => 'boolean', |
| 277 | 277 | 'label' => 'Truth value', |
| 278 | - ), |
|
| 278 | + ), |
|
| 279 | 279 | ), |
| 280 | 280 | 'module' => 'Rules', |
| 281 | - ), |
|
| 282 | - '#weight' => 0, |
|
| 281 | + ), |
|
| 282 | + '#weight' => 0, |
|
| 283 | 283 | ), |
| 284 | 284 | '6' => array( |
| 285 | - '#weight' => 0, |
|
| 286 | - '#info' => array( |
|
| 285 | + '#weight' => 0, |
|
| 286 | + '#info' => array( |
|
| 287 | 287 | 'label' => 'New profile has profile image', |
| 288 | 288 | 'label callback' => FALSE, |
| 289 | 289 | 'arguments' => array( |
| 290 | - 'boolean' => array( |
|
| 290 | + 'boolean' => array( |
|
| 291 | 291 | 'type' => 'boolean', |
| 292 | 292 | 'label' => 'Truth value', |
| 293 | - ), |
|
| 293 | + ), |
|
| 294 | 294 | ), |
| 295 | 295 | 'module' => 'Rules', |
| 296 | - ), |
|
| 297 | - '#name' => 'rules_condition_check_boolean', |
|
| 298 | - '#settings' => array( |
|
| 296 | + ), |
|
| 297 | + '#name' => 'rules_condition_check_boolean', |
|
| 298 | + '#settings' => array( |
|
| 299 | 299 | 'boolean' => '<?php echo ($node->field_profile_image[0][\'fid\'] ? 1 : 0); ?>', |
| 300 | 300 | '#eval input' => array( |
| 301 | - 'token_rules_input_evaluator' => array( |
|
| 301 | + 'token_rules_input_evaluator' => array( |
|
| 302 | 302 | 'boolean' => array( |
| 303 | - '0' => ':global', |
|
| 303 | + '0' => ':global', |
|
| 304 | + ), |
|
| 304 | 305 | ), |
| 305 | - ), |
|
| 306 | - 'rules_input_evaluator_php' => array( |
|
| 306 | + 'rules_input_evaluator_php' => array( |
|
| 307 | 307 | 'boolean' => array( |
| 308 | - '0' => 'node', |
|
| 308 | + '0' => 'node', |
|
| 309 | + ), |
|
| 309 | 310 | ), |
| 310 | - ), |
|
| 311 | 311 | ), |
| 312 | - ), |
|
| 313 | - '#type' => 'condition', |
|
| 312 | + ), |
|
| 313 | + '#type' => 'condition', |
|
| 314 | + ), |
|
| 314 | 315 | ), |
| 315 | - ), |
|
| 316 | 316 | ), |
| 317 | 317 | '#actions' => array( |
| 318 | - '1' => array( |
|
| 318 | + '1' => array( |
|
| 319 | 319 | '#weight' => 0, |
| 320 | 320 | '#info' => array( |
| 321 | - 'label' => 'Mark content for moderation', |
|
| 322 | - 'arguments' => array( |
|
| 321 | + 'label' => 'Mark content for moderation', |
|
| 322 | + 'arguments' => array( |
|
| 323 | 323 | 'node' => array( |
| 324 | - 'type' => 'node', |
|
| 325 | - 'label' => 'Content', |
|
| 324 | + 'type' => 'node', |
|
| 325 | + 'label' => 'Content', |
|
| 326 | + ), |
|
| 326 | 327 | ), |
| 327 | - ), |
|
| 328 | - 'module' => 'BOINC core', |
|
| 328 | + 'module' => 'BOINC core', |
|
| 329 | 329 | ), |
| 330 | 330 | '#name' => 'boinccore_rules_action_mark_content_for_moderation', |
| 331 | 331 | '#settings' => array( |
| 332 | - '#argument map' => array( |
|
| 332 | + '#argument map' => array( |
|
| 333 | 333 | 'node' => 'node', |
| 334 | - ), |
|
| 334 | + ), |
|
| 335 | 335 | ), |
| 336 | 336 | '#type' => 'action', |
| 337 | - ), |
|
| 337 | + ), |
|
| 338 | 338 | ), |
| 339 | 339 | '#version' => 6003, |
| 340 | - ), |
|
| 341 | - 'rules_user_profile_has_been_modified' => array( |
|
| 340 | + ), |
|
| 341 | + 'rules_user_profile_has_been_modified' => array( |
|
| 342 | 342 | '#type' => 'rule', |
| 343 | 343 | '#set' => 'event_node_update', |
| 344 | 344 | '#label' => 'User profile has been modified', |
| 345 | 345 | '#active' => 1, |
| 346 | 346 | '#weight' => '0', |
| 347 | 347 | '#categories' => array( |
| 348 | - '0' => 'moderation queue', |
|
| 349 | - 'user_profiles' => 'user_profiles', |
|
| 348 | + '0' => 'moderation queue', |
|
| 349 | + 'user_profiles' => 'user_profiles', |
|
| 350 | 350 | ), |
| 351 | 351 | '#status' => 'default', |
| 352 | 352 | '#conditions' => array( |
| 353 | - '0' => array( |
|
| 353 | + '0' => array( |
|
| 354 | 354 | '#type' => 'condition', |
| 355 | 355 | '#settings' => array( |
| 356 | - 'type' => array( |
|
| 356 | + 'type' => array( |
|
| 357 | 357 | 'profile' => 'profile', |
| 358 | - ), |
|
| 359 | - '#argument map' => array( |
|
| 358 | + ), |
|
| 359 | + '#argument map' => array( |
|
| 360 | 360 | 'node' => 'node', |
| 361 | - ), |
|
| 361 | + ), |
|
| 362 | 362 | ), |
| 363 | 363 | '#name' => 'rules_condition_content_is_type', |
| 364 | 364 | '#info' => array( |
| 365 | - 'label' => 'Created content is Profile', |
|
| 366 | - 'arguments' => array( |
|
| 365 | + 'label' => 'Created content is Profile', |
|
| 366 | + 'arguments' => array( |
|
| 367 | 367 | 'node' => array( |
| 368 | - 'type' => 'node', |
|
| 369 | - 'label' => 'Content', |
|
| 368 | + 'type' => 'node', |
|
| 369 | + 'label' => 'Content', |
|
| 370 | 370 | ), |
| 371 | - ), |
|
| 372 | - 'module' => 'Node', |
|
| 371 | + ), |
|
| 372 | + 'module' => 'Node', |
|
| 373 | 373 | ), |
| 374 | 374 | '#weight' => 0, |
| 375 | - ), |
|
| 376 | - '1' => array( |
|
| 375 | + ), |
|
| 376 | + '1' => array( |
|
| 377 | 377 | '#negate' => 1, |
| 378 | 378 | '#info' => array( |
| 379 | - 'label' => 'User has role(s)', |
|
| 380 | - 'arguments' => array( |
|
| 379 | + 'label' => 'User has role(s)', |
|
| 380 | + 'arguments' => array( |
|
| 381 | 381 | 'user' => array( |
| 382 | - 'type' => 'user', |
|
| 383 | - 'label' => 'User', |
|
| 382 | + 'type' => 'user', |
|
| 383 | + 'label' => 'User', |
|
| 384 | + ), |
|
| 384 | 385 | ), |
| 385 | - ), |
|
| 386 | - 'module' => 'User', |
|
| 386 | + 'module' => 'User', |
|
| 387 | 387 | ), |
| 388 | 388 | '#name' => 'rules_condition_user_hasrole', |
| 389 | 389 | '#settings' => array( |
| 390 | - 'roles' => array( |
|
| 390 | + 'roles' => array( |
|
| 391 | 391 | '0' => 3519698132, |
| 392 | 392 | '1' => 1271379760, |
| 393 | - ), |
|
| 394 | - 'operation' => 'OR', |
|
| 395 | - '#argument map' => array( |
|
| 393 | + ), |
|
| 394 | + 'operation' => 'OR', |
|
| 395 | + '#argument map' => array( |
|
| 396 | 396 | 'user' => 'user', |
| 397 | - ), |
|
| 397 | + ), |
|
| 398 | 398 | ), |
| 399 | 399 | '#type' => 'condition', |
| 400 | 400 | '#weight' => 0, |
| 401 | - ), |
|
| 402 | - '2' => array( |
|
| 401 | + ), |
|
| 402 | + '2' => array( |
|
| 403 | 403 | '#weight' => 0, |
| 404 | 404 | '#info' => array( |
| 405 | - 'label' => 'Compare two users', |
|
| 406 | - 'arguments' => array( |
|
| 405 | + 'label' => 'Compare two users', |
|
| 406 | + 'arguments' => array( |
|
| 407 | 407 | 'user1' => array( |
| 408 | - 'type' => 'user', |
|
| 409 | - 'label' => 'User account 1', |
|
| 408 | + 'type' => 'user', |
|
| 409 | + 'label' => 'User account 1', |
|
| 410 | 410 | ), |
| 411 | 411 | 'user2' => array( |
| 412 | - 'type' => 'user', |
|
| 413 | - 'label' => 'User account 2', |
|
| 412 | + 'type' => 'user', |
|
| 413 | + 'label' => 'User account 2', |
|
| 414 | 414 | ), |
| 415 | - ), |
|
| 416 | - 'module' => 'User', |
|
| 415 | + ), |
|
| 416 | + 'module' => 'User', |
|
| 417 | 417 | ), |
| 418 | 418 | '#name' => 'rules_condition_user_comparison', |
| 419 | 419 | '#settings' => array( |
| 420 | - '#argument map' => array( |
|
| 420 | + '#argument map' => array( |
|
| 421 | 421 | 'user1' => 'user', |
| 422 | 422 | 'user2' => 'author', |
| 423 | - ), |
|
| 423 | + ), |
|
| 424 | 424 | ), |
| 425 | 425 | '#type' => 'condition', |
| 426 | - ), |
|
| 427 | - '3' => array( |
|
| 426 | + ), |
|
| 427 | + '3' => array( |
|
| 428 | 428 | '#type' => 'OR', |
| 429 | 429 | '0' => array( |
| 430 | - '#info' => array( |
|
| 430 | + '#info' => array( |
|
| 431 | 431 | 'label' => 'Updated content\'s field \'field_background\' has been changed', |
| 432 | 432 | 'arguments' => array( |
| 433 | - 'node' => array( |
|
| 433 | + 'node' => array( |
|
| 434 | 434 | 'type' => 'node', |
| 435 | 435 | 'label' => 'Content containing changes', |
| 436 | - ), |
|
| 437 | - 'node_unchanged' => array( |
|
| 436 | + ), |
|
| 437 | + 'node_unchanged' => array( |
|
| 438 | 438 | 'type' => 'node', |
| 439 | 439 | 'label' => 'Content not containing changes', |
| 440 | - ), |
|
| 440 | + ), |
|
| 441 | 441 | ), |
| 442 | 442 | 'module' => 'CCK', |
| 443 | - ), |
|
| 444 | - '#name' => 'content_rules_field_changed', |
|
| 445 | - '#settings' => array( |
|
| 443 | + ), |
|
| 444 | + '#name' => 'content_rules_field_changed', |
|
| 445 | + '#settings' => array( |
|
| 446 | 446 | 'field_name' => 'field_background', |
| 447 | 447 | '#argument map' => array( |
| 448 | - 'node' => 'node', |
|
| 449 | - 'node_unchanged' => 'node_unchanged', |
|
| 448 | + 'node' => 'node', |
|
| 449 | + 'node_unchanged' => 'node_unchanged', |
|
| 450 | 450 | ), |
| 451 | - ), |
|
| 452 | - '#type' => 'condition', |
|
| 453 | - '#weight' => 0, |
|
| 451 | + ), |
|
| 452 | + '#type' => 'condition', |
|
| 453 | + '#weight' => 0, |
|
| 454 | 454 | ), |
| 455 | 455 | '#weight' => 0, |
| 456 | 456 | '1' => array( |
| 457 | - '#weight' => 0, |
|
| 458 | - '#info' => array( |
|
| 457 | + '#weight' => 0, |
|
| 458 | + '#info' => array( |
|
| 459 | 459 | 'label' => 'Updated content\'s field \'field_opinions\' has been changed', |
| 460 | 460 | 'arguments' => array( |
| 461 | - 'node' => array( |
|
| 461 | + 'node' => array( |
|
| 462 | 462 | 'type' => 'node', |
| 463 | 463 | 'label' => 'Content containing changes', |
| 464 | - ), |
|
| 465 | - 'node_unchanged' => array( |
|
| 464 | + ), |
|
| 465 | + 'node_unchanged' => array( |
|
| 466 | 466 | 'type' => 'node', |
| 467 | 467 | 'label' => 'Content not containing changes', |
| 468 | - ), |
|
| 468 | + ), |
|
| 469 | 469 | ), |
| 470 | 470 | 'module' => 'CCK', |
| 471 | - ), |
|
| 472 | - '#name' => 'content_rules_field_changed', |
|
| 473 | - '#settings' => array( |
|
| 471 | + ), |
|
| 472 | + '#name' => 'content_rules_field_changed', |
|
| 473 | + '#settings' => array( |
|
| 474 | 474 | 'field_name' => 'field_opinions', |
| 475 | 475 | '#argument map' => array( |
| 476 | - 'node' => 'node', |
|
| 477 | - 'node_unchanged' => 'node_unchanged', |
|
| 476 | + 'node' => 'node', |
|
| 477 | + 'node_unchanged' => 'node_unchanged', |
|
| 478 | + ), |
|
| 478 | 479 | ), |
| 479 | - ), |
|
| 480 | - '#type' => 'condition', |
|
| 480 | + '#type' => 'condition', |
|
| 481 | 481 | ), |
| 482 | 482 | '2' => array( |
| 483 | - '#type' => 'condition', |
|
| 484 | - '#settings' => array( |
|
| 483 | + '#type' => 'condition', |
|
| 484 | + '#settings' => array( |
|
| 485 | 485 | 'field_name' => 'field_url', |
| 486 | 486 | '#argument map' => array( |
| 487 | - 'node' => 'node', |
|
| 488 | - 'node_unchanged' => 'node_unchanged', |
|
| 487 | + 'node' => 'node', |
|
| 488 | + 'node_unchanged' => 'node_unchanged', |
|
| 489 | 489 | ), |
| 490 | - ), |
|
| 491 | - '#name' => 'content_rules_field_changed', |
|
| 492 | - '#info' => array( |
|
| 490 | + ), |
|
| 491 | + '#name' => 'content_rules_field_changed', |
|
| 492 | + '#info' => array( |
|
| 493 | 493 | 'label' => 'Updated content\'s field \'field_url\' has been changed', |
| 494 | 494 | 'arguments' => array( |
| 495 | - 'node' => array( |
|
| 495 | + 'node' => array( |
|
| 496 | 496 | 'type' => 'node', |
| 497 | 497 | 'label' => 'Content containing changes', |
| 498 | - ), |
|
| 499 | - 'node_unchanged' => array( |
|
| 498 | + ), |
|
| 499 | + 'node_unchanged' => array( |
|
| 500 | 500 | 'type' => 'node', |
| 501 | 501 | 'label' => 'Content not containing changes', |
| 502 | - ), |
|
| 502 | + ), |
|
| 503 | 503 | ), |
| 504 | 504 | 'module' => 'CCK', |
| 505 | - ), |
|
| 506 | - '#weight' => 0, |
|
| 505 | + ), |
|
| 506 | + '#weight' => 0, |
|
| 507 | 507 | ), |
| 508 | 508 | '4' => array( |
| 509 | - '#type' => 'AND', |
|
| 510 | - '#weight' => 0, |
|
| 511 | - '1' => array( |
|
| 509 | + '#type' => 'AND', |
|
| 510 | + '#weight' => 0, |
|
| 511 | + '1' => array( |
|
| 512 | 512 | '#weight' => 0, |
| 513 | 513 | '#info' => array( |
| 514 | - 'label' => 'Modified profile has profile image', |
|
| 515 | - 'label callback' => FALSE, |
|
| 516 | - 'arguments' => array( |
|
| 514 | + 'label' => 'Modified profile has profile image', |
|
| 515 | + 'label callback' => FALSE, |
|
| 516 | + 'arguments' => array( |
|
| 517 | 517 | 'boolean' => array( |
| 518 | - 'type' => 'boolean', |
|
| 519 | - 'label' => 'Truth value', |
|
| 518 | + 'type' => 'boolean', |
|
| 519 | + 'label' => 'Truth value', |
|
| 520 | + ), |
|
| 520 | 521 | ), |
| 521 | - ), |
|
| 522 | - 'module' => 'Rules', |
|
| 522 | + 'module' => 'Rules', |
|
| 523 | 523 | ), |
| 524 | 524 | '#name' => 'rules_condition_check_boolean', |
| 525 | 525 | '#settings' => array( |
| 526 | - 'boolean' => '<?php echo ($node->field_profile_image[0][\'fid\'] ? 1 : 0); ?>', |
|
| 527 | - '#eval input' => array( |
|
| 526 | + 'boolean' => '<?php echo ($node->field_profile_image[0][\'fid\'] ? 1 : 0); ?>', |
|
| 527 | + '#eval input' => array( |
|
| 528 | 528 | 'token_rules_input_evaluator' => array( |
| 529 | - 'boolean' => array( |
|
| 529 | + 'boolean' => array( |
|
| 530 | 530 | '0' => ':global', |
| 531 | - ), |
|
| 531 | + ), |
|
| 532 | 532 | ), |
| 533 | 533 | 'rules_input_evaluator_php' => array( |
| 534 | - 'boolean' => array( |
|
| 534 | + 'boolean' => array( |
|
| 535 | 535 | '0' => 'node', |
| 536 | - ), |
|
| 536 | + ), |
|
| 537 | + ), |
|
| 537 | 538 | ), |
| 538 | - ), |
|
| 539 | 539 | ), |
| 540 | 540 | '#type' => 'condition', |
| 541 | - ), |
|
| 542 | - '0' => array( |
|
| 541 | + ), |
|
| 542 | + '0' => array( |
|
| 543 | 543 | '#info' => array( |
| 544 | - 'label' => 'Modified profile image is different from previous profile image', |
|
| 545 | - 'label callback' => FALSE, |
|
| 546 | - 'arguments' => array( |
|
| 544 | + 'label' => 'Modified profile image is different from previous profile image', |
|
| 545 | + 'label callback' => FALSE, |
|
| 546 | + 'arguments' => array( |
|
| 547 | 547 | 'boolean' => array( |
| 548 | - 'type' => 'boolean', |
|
| 549 | - 'label' => 'Truth value', |
|
| 548 | + 'type' => 'boolean', |
|
| 549 | + 'label' => 'Truth value', |
|
| 550 | 550 | ), |
| 551 | - ), |
|
| 552 | - 'module' => 'Rules', |
|
| 551 | + ), |
|
| 552 | + 'module' => 'Rules', |
|
| 553 | 553 | ), |
| 554 | 554 | '#name' => 'rules_condition_check_boolean', |
| 555 | 555 | '#settings' => array( |
| 556 | - 'boolean' => '<?php echo ($node->field_profile_image[0][\'fid\'] != $node_unchanged->field_profile_image[0][\'fid\']); ?>', |
|
| 557 | - '#eval input' => array( |
|
| 556 | + 'boolean' => '<?php echo ($node->field_profile_image[0][\'fid\'] != $node_unchanged->field_profile_image[0][\'fid\']); ?>', |
|
| 557 | + '#eval input' => array( |
|
| 558 | 558 | 'token_rules_input_evaluator' => array( |
| 559 | - 'boolean' => array( |
|
| 559 | + 'boolean' => array( |
|
| 560 | 560 | '0' => ':global', |
| 561 | - ), |
|
| 561 | + ), |
|
| 562 | 562 | ), |
| 563 | 563 | 'rules_input_evaluator_php' => array( |
| 564 | - 'boolean' => array( |
|
| 564 | + 'boolean' => array( |
|
| 565 | 565 | '0' => 'node', |
| 566 | 566 | '1' => 'node_unchanged', |
| 567 | - ), |
|
| 567 | + ), |
|
| 568 | + ), |
|
| 568 | 569 | ), |
| 569 | - ), |
|
| 570 | 570 | ), |
| 571 | 571 | '#type' => 'condition', |
| 572 | 572 | '#weight' => 1, |
| 573 | - ), |
|
| 573 | + ), |
|
| 574 | 574 | ), |
| 575 | 575 | '3' => array( |
| 576 | - '#weight' => 1, |
|
| 577 | - '#type' => 'AND', |
|
| 578 | - '1' => array( |
|
| 576 | + '#weight' => 1, |
|
| 577 | + '#type' => 'AND', |
|
| 578 | + '1' => array( |
|
| 579 | 579 | '#type' => 'condition', |
| 580 | 580 | '#settings' => array( |
| 581 | - 'boolean' => '<?php echo ($node->field_image[0][\'fid\'] ? 1 : 0); ?>', |
|
| 582 | - '#eval input' => array( |
|
| 581 | + 'boolean' => '<?php echo ($node->field_image[0][\'fid\'] ? 1 : 0); ?>', |
|
| 582 | + '#eval input' => array( |
|
| 583 | 583 | 'token_rules_input_evaluator' => array( |
| 584 | - 'boolean' => array( |
|
| 584 | + 'boolean' => array( |
|
| 585 | 585 | '0' => ':global', |
| 586 | - ), |
|
| 586 | + ), |
|
| 587 | 587 | ), |
| 588 | 588 | 'rules_input_evaluator_php' => array( |
| 589 | - 'boolean' => array( |
|
| 589 | + 'boolean' => array( |
|
| 590 | 590 | '0' => 'node', |
| 591 | - ), |
|
| 591 | + ), |
|
| 592 | + ), |
|
| 592 | 593 | ), |
| 593 | - ), |
|
| 594 | 594 | ), |
| 595 | 595 | '#name' => 'rules_condition_check_boolean', |
| 596 | 596 | '#info' => array( |
| 597 | - 'label' => 'Modified profile has avatar', |
|
| 598 | - 'label callback' => FALSE, |
|
| 599 | - 'arguments' => array( |
|
| 597 | + 'label' => 'Modified profile has avatar', |
|
| 598 | + 'label callback' => FALSE, |
|
| 599 | + 'arguments' => array( |
|
| 600 | 600 | 'boolean' => array( |
| 601 | - 'type' => 'boolean', |
|
| 602 | - 'label' => 'Truth value', |
|
| 601 | + 'type' => 'boolean', |
|
| 602 | + 'label' => 'Truth value', |
|
| 603 | 603 | ), |
| 604 | - ), |
|
| 605 | - 'module' => 'Rules', |
|
| 604 | + ), |
|
| 605 | + 'module' => 'Rules', |
|
| 606 | 606 | ), |
| 607 | 607 | '#weight' => 0, |
| 608 | - ), |
|
| 609 | - '0' => array( |
|
| 608 | + ), |
|
| 609 | + '0' => array( |
|
| 610 | 610 | '#weight' => 1, |
| 611 | 611 | '#info' => array( |
| 612 | - 'label' => 'Modified profile avatar is different from previous avatar', |
|
| 613 | - 'label callback' => FALSE, |
|
| 614 | - 'arguments' => array( |
|
| 612 | + 'label' => 'Modified profile avatar is different from previous avatar', |
|
| 613 | + 'label callback' => FALSE, |
|
| 614 | + 'arguments' => array( |
|
| 615 | 615 | 'boolean' => array( |
| 616 | - 'type' => 'boolean', |
|
| 617 | - 'label' => 'Truth value', |
|
| 616 | + 'type' => 'boolean', |
|
| 617 | + 'label' => 'Truth value', |
|
| 618 | + ), |
|
| 618 | 619 | ), |
| 619 | - ), |
|
| 620 | - 'module' => 'Rules', |
|
| 620 | + 'module' => 'Rules', |
|
| 621 | 621 | ), |
| 622 | 622 | '#name' => 'rules_condition_check_boolean', |
| 623 | 623 | '#settings' => array( |
| 624 | - 'boolean' => '<?php echo ($node->field_image[0][\'fid\'] != $node_unchanged->field_image[0][\'fid\']); ?>', |
|
| 625 | - '#eval input' => array( |
|
| 624 | + 'boolean' => '<?php echo ($node->field_image[0][\'fid\'] != $node_unchanged->field_image[0][\'fid\']); ?>', |
|
| 625 | + '#eval input' => array( |
|
| 626 | 626 | 'token_rules_input_evaluator' => array( |
| 627 | - 'boolean' => array( |
|
| 627 | + 'boolean' => array( |
|
| 628 | 628 | '0' => ':global', |
| 629 | - ), |
|
| 629 | + ), |
|
| 630 | 630 | ), |
| 631 | 631 | 'rules_input_evaluator_php' => array( |
| 632 | - 'boolean' => array( |
|
| 632 | + 'boolean' => array( |
|
| 633 | 633 | '0' => 'node', |
| 634 | 634 | '1' => 'node_unchanged', |
| 635 | - ), |
|
| 635 | + ), |
|
| 636 | + ), |
|
| 636 | 637 | ), |
| 637 | - ), |
|
| 638 | 638 | ), |
| 639 | 639 | '#type' => 'condition', |
| 640 | - ), |
|
| 640 | + ), |
|
| 641 | + ), |
|
| 641 | 642 | ), |
| 642 | - ), |
|
| 643 | 643 | ), |
| 644 | 644 | '#actions' => array( |
| 645 | - '1' => array( |
|
| 645 | + '1' => array( |
|
| 646 | 646 | '#weight' => 0, |
| 647 | 647 | '#info' => array( |
| 648 | - 'label' => 'Mark content for moderation', |
|
| 649 | - 'arguments' => array( |
|
| 648 | + 'label' => 'Mark content for moderation', |
|
| 649 | + 'arguments' => array( |
|
| 650 | 650 | 'node' => array( |
| 651 | - 'type' => 'node', |
|
| 652 | - 'label' => 'Content', |
|
| 651 | + 'type' => 'node', |
|
| 652 | + 'label' => 'Content', |
|
| 653 | 653 | ), |
| 654 | - ), |
|
| 655 | - 'module' => 'BOINC core', |
|
| 654 | + ), |
|
| 655 | + 'module' => 'BOINC core', |
|
| 656 | 656 | ), |
| 657 | 657 | '#name' => 'boinccore_rules_action_mark_content_for_moderation', |
| 658 | 658 | '#settings' => array( |
| 659 | - '#argument map' => array( |
|
| 659 | + '#argument map' => array( |
|
| 660 | 660 | 'node' => 'node', |
| 661 | - ), |
|
| 661 | + ), |
|
| 662 | 662 | ), |
| 663 | 663 | '#type' => 'action', |
| 664 | - ), |
|
| 664 | + ), |
|
| 665 | 665 | ), |
| 666 | 666 | '#version' => 6003, |
| 667 | - ), |
|
| 667 | + ), |
|
| 668 | 668 | ), |
| 669 | - ); |
|
| 669 | + ); |
|
| 670 | 670 | } |
| 671 | 671 | |
| 672 | 672 | /** |
| 673 | 673 | * Implementation of hook_views_api(). |
| 674 | 674 | */ |
| 675 | 675 | function user_profiles_views_api() { |
| 676 | - return array( |
|
| 676 | + return array( |
|
| 677 | 677 | 'api' => '2', |
| 678 | - ); |
|
| 678 | + ); |
|
| 679 | 679 | } |
@@ -4,85 +4,85 @@ |
||
| 4 | 4 | * Implementation of hook_user_default_permissions(). |
| 5 | 5 | */ |
| 6 | 6 | function user_profiles_user_default_permissions() { |
| 7 | - $permissions = array(); |
|
| 7 | + $permissions = array(); |
|
| 8 | 8 | |
| 9 | - // Exported permission: access user profiles |
|
| 10 | - $permissions['access user profiles'] = array( |
|
| 9 | + // Exported permission: access user profiles |
|
| 10 | + $permissions['access user profiles'] = array( |
|
| 11 | 11 | 'name' => 'access user profiles', |
| 12 | 12 | 'roles' => array( |
| 13 | - '0' => 'administrator', |
|
| 14 | - '1' => 'authenticated user', |
|
| 13 | + '0' => 'administrator', |
|
| 14 | + '1' => 'authenticated user', |
|
| 15 | 15 | ), |
| 16 | - ); |
|
| 16 | + ); |
|
| 17 | 17 | |
| 18 | - // Exported permission: administer gravatar |
|
| 19 | - $permissions['administer gravatar'] = array( |
|
| 18 | + // Exported permission: administer gravatar |
|
| 19 | + $permissions['administer gravatar'] = array( |
|
| 20 | 20 | 'name' => 'administer gravatar', |
| 21 | 21 | 'roles' => array( |
| 22 | - '0' => 'administrator', |
|
| 22 | + '0' => 'administrator', |
|
| 23 | 23 | ), |
| 24 | - ); |
|
| 24 | + ); |
|
| 25 | 25 | |
| 26 | - // Exported permission: create profile content |
|
| 27 | - $permissions['create profile content'] = array( |
|
| 26 | + // Exported permission: create profile content |
|
| 27 | + $permissions['create profile content'] = array( |
|
| 28 | 28 | 'name' => 'create profile content', |
| 29 | 29 | 'roles' => array( |
| 30 | - '0' => 'administrator', |
|
| 31 | - '1' => 'verified contributor', |
|
| 30 | + '0' => 'administrator', |
|
| 31 | + '1' => 'verified contributor', |
|
| 32 | 32 | ), |
| 33 | - ); |
|
| 33 | + ); |
|
| 34 | 34 | |
| 35 | - // Exported permission: delete any profile content |
|
| 36 | - $permissions['delete any profile content'] = array( |
|
| 35 | + // Exported permission: delete any profile content |
|
| 36 | + $permissions['delete any profile content'] = array( |
|
| 37 | 37 | 'name' => 'delete any profile content', |
| 38 | 38 | 'roles' => array( |
| 39 | - '0' => 'administrator', |
|
| 40 | - '1' => 'moderator', |
|
| 39 | + '0' => 'administrator', |
|
| 40 | + '1' => 'moderator', |
|
| 41 | 41 | ), |
| 42 | - ); |
|
| 42 | + ); |
|
| 43 | 43 | |
| 44 | - // Exported permission: delete own profile content |
|
| 45 | - $permissions['delete own profile content'] = array( |
|
| 44 | + // Exported permission: delete own profile content |
|
| 45 | + $permissions['delete own profile content'] = array( |
|
| 46 | 46 | 'name' => 'delete own profile content', |
| 47 | 47 | 'roles' => array( |
| 48 | - '0' => 'administrator', |
|
| 49 | - '1' => 'community member', |
|
| 48 | + '0' => 'administrator', |
|
| 49 | + '1' => 'community member', |
|
| 50 | 50 | ), |
| 51 | - ); |
|
| 51 | + ); |
|
| 52 | 52 | |
| 53 | - // Exported permission: disable own gravatar |
|
| 54 | - $permissions['disable own gravatar'] = array( |
|
| 53 | + // Exported permission: disable own gravatar |
|
| 54 | + $permissions['disable own gravatar'] = array( |
|
| 55 | 55 | 'name' => 'disable own gravatar', |
| 56 | 56 | 'roles' => array( |
| 57 | - '0' => 'community member', |
|
| 57 | + '0' => 'community member', |
|
| 58 | 58 | ), |
| 59 | - ); |
|
| 59 | + ); |
|
| 60 | 60 | |
| 61 | - // Exported permission: edit any profile content |
|
| 62 | - $permissions['edit any profile content'] = array( |
|
| 61 | + // Exported permission: edit any profile content |
|
| 62 | + $permissions['edit any profile content'] = array( |
|
| 63 | 63 | 'name' => 'edit any profile content', |
| 64 | 64 | 'roles' => array( |
| 65 | - '0' => 'administrator', |
|
| 66 | - '1' => 'moderator', |
|
| 65 | + '0' => 'administrator', |
|
| 66 | + '1' => 'moderator', |
|
| 67 | 67 | ), |
| 68 | - ); |
|
| 68 | + ); |
|
| 69 | 69 | |
| 70 | - // Exported permission: edit own profile content |
|
| 71 | - $permissions['edit own profile content'] = array( |
|
| 70 | + // Exported permission: edit own profile content |
|
| 71 | + $permissions['edit own profile content'] = array( |
|
| 72 | 72 | 'name' => 'edit own profile content', |
| 73 | 73 | 'roles' => array( |
| 74 | - '0' => 'administrator', |
|
| 75 | - '1' => 'verified contributor', |
|
| 74 | + '0' => 'administrator', |
|
| 75 | + '1' => 'verified contributor', |
|
| 76 | 76 | ), |
| 77 | - ); |
|
| 77 | + ); |
|
| 78 | 78 | |
| 79 | - // Exported permission: use gravatar |
|
| 80 | - $permissions['use gravatar'] = array( |
|
| 79 | + // Exported permission: use gravatar |
|
| 80 | + $permissions['use gravatar'] = array( |
|
| 81 | 81 | 'name' => 'use gravatar', |
| 82 | 82 | 'roles' => array( |
| 83 | - '0' => 'community member', |
|
| 83 | + '0' => 'community member', |
|
| 84 | 84 | ), |
| 85 | - ); |
|
| 85 | + ); |
|
| 86 | 86 | |
| 87 | - return $permissions; |
|
| 87 | + return $permissions; |
|
| 88 | 88 | } |
@@ -4,8 +4,8 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | |
| 6 | 6 | function spam_controls_menu() { |
| 7 | - $items['user/register']['page access'] = FALSE; |
|
| 8 | - $items['user/registration'] = array( |
|
| 7 | + $items['user/register']['page access'] = FALSE; |
|
| 8 | + $items['user/registration'] = array( |
|
| 9 | 9 | 'title' => 'Create new account', |
| 10 | 10 | 'page callback' => 'drupal_get_form', |
| 11 | 11 | 'page arguments' => array('user_register'), |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | 'type' => MENU_LOCAL_TASK, |
| 14 | 14 | 'file' => 'user.pages.inc', |
| 15 | 15 | 'file path' => drupal_get_path('module', 'user'), |
| 16 | - ); |
|
| 16 | + ); |
|
| 17 | 17 | |
| 18 | - return $items; |
|
| 18 | + return $items; |
|
| 19 | 19 | } |
@@ -4,16 +4,16 @@ |
||
| 4 | 4 | * Implementation of hook_captcha_default_points(). |
| 5 | 5 | */ |
| 6 | 6 | function spam_controls_captcha_default_points() { |
| 7 | - return array( |
|
| 7 | + return array( |
|
| 8 | 8 | 'edit_profile_node_form' => array( |
| 9 | - 'form_id' => 'edit_profile_node_form', |
|
| 10 | - 'module' => NULL, |
|
| 11 | - 'captcha_type' => NULL, |
|
| 9 | + 'form_id' => 'edit_profile_node_form', |
|
| 10 | + 'module' => NULL, |
|
| 11 | + 'captcha_type' => NULL, |
|
| 12 | 12 | ), |
| 13 | 13 | 'user_register' => array( |
| 14 | - 'form_id' => 'user_register', |
|
| 15 | - 'module' => NULL, |
|
| 16 | - 'captcha_type' => NULL, |
|
| 14 | + 'form_id' => 'user_register', |
|
| 15 | + 'module' => NULL, |
|
| 16 | + 'captcha_type' => NULL, |
|
| 17 | 17 | ), |
| 18 | - ); |
|
| 18 | + ); |
|
| 19 | 19 | } |
@@ -4,77 +4,77 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function spam_controls_strongarm() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $strongarm = new stdClass; |
|
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | - $strongarm->api_version = 1; |
|
| 12 | - $strongarm->name = 'captcha_add_captcha_description'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['captcha_add_captcha_description'] = $strongarm; |
|
| 9 | + $strongarm = new stdClass; |
|
| 10 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | + $strongarm->api_version = 1; |
|
| 12 | + $strongarm->name = 'captcha_add_captcha_description'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['captcha_add_captcha_description'] = $strongarm; |
|
| 15 | 15 | |
| 16 | - $strongarm = new stdClass; |
|
| 17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | - $strongarm->api_version = 1; |
|
| 19 | - $strongarm->name = 'captcha_administration_mode'; |
|
| 20 | - $strongarm->value = 0; |
|
| 21 | - $export['captcha_administration_mode'] = $strongarm; |
|
| 16 | + $strongarm = new stdClass; |
|
| 17 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | + $strongarm->api_version = 1; |
|
| 19 | + $strongarm->name = 'captcha_administration_mode'; |
|
| 20 | + $strongarm->value = 0; |
|
| 21 | + $export['captcha_administration_mode'] = $strongarm; |
|
| 22 | 22 | |
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'captcha_allow_on_admin_pages'; |
|
| 27 | - $strongarm->value = 0; |
|
| 28 | - $export['captcha_allow_on_admin_pages'] = $strongarm; |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'captcha_allow_on_admin_pages'; |
|
| 27 | + $strongarm->value = 0; |
|
| 28 | + $export['captcha_allow_on_admin_pages'] = $strongarm; |
|
| 29 | 29 | |
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'captcha_default_challenge'; |
|
| 34 | - $strongarm->value = 'recaptcha/reCAPTCHA'; |
|
| 35 | - $export['captcha_default_challenge'] = $strongarm; |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'captcha_default_challenge'; |
|
| 34 | + $strongarm->value = 'recaptcha/reCAPTCHA'; |
|
| 35 | + $export['captcha_default_challenge'] = $strongarm; |
|
| 36 | 36 | |
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'captcha_description'; |
|
| 41 | - $strongarm->value = 'This question is for testing whether you are a human visitor and to prevent automated spam submissions.'; |
|
| 42 | - $export['captcha_description'] = $strongarm; |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'captcha_description'; |
|
| 41 | + $strongarm->value = 'This question is for testing whether you are a human visitor and to prevent automated spam submissions.'; |
|
| 42 | + $export['captcha_description'] = $strongarm; |
|
| 43 | 43 | |
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'recaptcha_ajax_api'; |
|
| 48 | - $strongarm->value = 0; |
|
| 49 | - $export['recaptcha_ajax_api'] = $strongarm; |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'recaptcha_ajax_api'; |
|
| 48 | + $strongarm->value = 0; |
|
| 49 | + $export['recaptcha_ajax_api'] = $strongarm; |
|
| 50 | 50 | |
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'recaptcha_private_key'; |
|
| 55 | - $strongarm->value = '6LcAp9gSAAAAACqDNjbUiryK2BICYWXQP3HvwlIX'; |
|
| 56 | - $export['recaptcha_private_key'] = $strongarm; |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'recaptcha_private_key'; |
|
| 55 | + $strongarm->value = '6LcAp9gSAAAAACqDNjbUiryK2BICYWXQP3HvwlIX'; |
|
| 56 | + $export['recaptcha_private_key'] = $strongarm; |
|
| 57 | 57 | |
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'recaptcha_public_key'; |
|
| 62 | - $strongarm->value = '6LcAp9gSAAAAAK3VyU-clMl_lDf2l-OrSwxMqoZi'; |
|
| 63 | - $export['recaptcha_public_key'] = $strongarm; |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'recaptcha_public_key'; |
|
| 62 | + $strongarm->value = '6LcAp9gSAAAAAK3VyU-clMl_lDf2l-OrSwxMqoZi'; |
|
| 63 | + $export['recaptcha_public_key'] = $strongarm; |
|
| 64 | 64 | |
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'recaptcha_secure_connection'; |
|
| 69 | - $strongarm->value = 1; |
|
| 70 | - $export['recaptcha_secure_connection'] = $strongarm; |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'recaptcha_secure_connection'; |
|
| 69 | + $strongarm->value = 1; |
|
| 70 | + $export['recaptcha_secure_connection'] = $strongarm; |
|
| 71 | 71 | |
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'recaptcha_theme'; |
|
| 76 | - $strongarm->value = 'clean'; |
|
| 77 | - $export['recaptcha_theme'] = $strongarm; |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'recaptcha_theme'; |
|
| 76 | + $strongarm->value = 'clean'; |
|
| 77 | + $export['recaptcha_theme'] = $strongarm; |
|
| 78 | 78 | |
| 79 | - return $export; |
|
| 79 | + return $export; |
|
| 80 | 80 | } |