@@ -7,17 +7,13 @@ |
||
| 7 | 7 | list($module, $api) = func_get_args(); |
| 8 | 8 | if ($module == "input_formats" && $api == "input_formats") { |
| 9 | 9 | return array("version" => 1); |
| 10 | - } |
|
| 11 | - elseif ($module == "page_manager" && $api == "pages_default") { |
|
| 10 | + } elseif ($module == "page_manager" && $api == "pages_default") { |
|
| 12 | 11 | return array("version" => 1); |
| 13 | - } |
|
| 14 | - elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 12 | + } elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 15 | 13 | return array("version" => 1); |
| 16 | - } |
|
| 17 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 14 | + } elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 18 | 15 | return array("version" => 1); |
| 19 | - } |
|
| 20 | - elseif ($module == "wysiwyg" && $api == "wysiwyg") { |
|
| 16 | + } elseif ($module == "wysiwyg" && $api == "wysiwyg") { |
|
| 21 | 17 | return array("version" => 2); |
| 22 | 18 | } |
| 23 | 19 | } |
@@ -4,38 +4,38 @@ discard block |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_ctools_plugin_api() { |
| 7 | - list($module, $api) = func_get_args(); |
|
| 8 | - if ($module == "input_formats" && $api == "input_formats") { |
|
| 7 | + list($module, $api) = func_get_args(); |
|
| 8 | + if ($module == "input_formats" && $api == "input_formats") { |
|
| 9 | 9 | return array("version" => 1); |
| 10 | - } |
|
| 11 | - elseif ($module == "page_manager" && $api == "pages_default") { |
|
| 10 | + } |
|
| 11 | + elseif ($module == "page_manager" && $api == "pages_default") { |
|
| 12 | 12 | return array("version" => 1); |
| 13 | - } |
|
| 14 | - elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 13 | + } |
|
| 14 | + elseif ($module == "panels_mini" && $api == "panels_default") { |
|
| 15 | 15 | return array("version" => 1); |
| 16 | - } |
|
| 17 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 16 | + } |
|
| 17 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
| 18 | 18 | return array("version" => 1); |
| 19 | - } |
|
| 20 | - elseif ($module == "wysiwyg" && $api == "wysiwyg") { |
|
| 19 | + } |
|
| 20 | + elseif ($module == "wysiwyg" && $api == "wysiwyg") { |
|
| 21 | 21 | return array("version" => 2); |
| 22 | - } |
|
| 22 | + } |
|
| 23 | 23 | } |
| 24 | 24 | |
| 25 | 25 | /** |
| 26 | 26 | * Implementation of hook_flag_default_flags(). |
| 27 | 27 | */ |
| 28 | 28 | function boinc_standard_flag_default_flags() { |
| 29 | - $flags = array(); |
|
| 30 | - // Exported flag: "Comment Abuse". |
|
| 31 | - $flags['abuse_comment'] = array( |
|
| 29 | + $flags = array(); |
|
| 30 | + // Exported flag: "Comment Abuse". |
|
| 31 | + $flags['abuse_comment'] = array( |
|
| 32 | 32 | 'content_type' => 'comment', |
| 33 | 33 | 'title' => 'Comment Abuse', |
| 34 | 34 | 'global' => FALSE, |
| 35 | 35 | 'types' => array( |
| 36 | - '0' => 'forum', |
|
| 37 | - '1' => 'news', |
|
| 38 | - '2' => 'team_forum', |
|
| 36 | + '0' => 'forum', |
|
| 37 | + '1' => 'news', |
|
| 38 | + '2' => 'team_forum', |
|
| 39 | 39 | ), |
| 40 | 40 | 'flag_short' => 'Report', |
| 41 | 41 | 'flag_long' => 'Report this content as offensive.', |
@@ -46,31 +46,31 @@ discard block |
||
| 46 | 46 | 'unflag_denied_text' => '', |
| 47 | 47 | 'link_type' => 'toggle', |
| 48 | 48 | 'roles' => array( |
| 49 | - 'flag' => array( |
|
| 49 | + 'flag' => array( |
|
| 50 | 50 | '0' => 2, |
| 51 | - ), |
|
| 52 | - 'unflag' => array( |
|
| 51 | + ), |
|
| 52 | + 'unflag' => array( |
|
| 53 | 53 | '0' => 2, |
| 54 | - ), |
|
| 54 | + ), |
|
| 55 | 55 | ), |
| 56 | 56 | 'weight' => 0, |
| 57 | 57 | 'access_author' => '', |
| 58 | 58 | 'show_on_comment' => 1, |
| 59 | 59 | 'module' => 'boinc_standard', |
| 60 | 60 | 'locked' => array( |
| 61 | - '0' => 'name', |
|
| 61 | + '0' => 'name', |
|
| 62 | 62 | ), |
| 63 | 63 | 'api_version' => 2, |
| 64 | - ); |
|
| 65 | - // Exported flag: "Node Abuse". |
|
| 66 | - $flags['abuse_node'] = array( |
|
| 64 | + ); |
|
| 65 | + // Exported flag: "Node Abuse". |
|
| 66 | + $flags['abuse_node'] = array( |
|
| 67 | 67 | 'content_type' => 'node', |
| 68 | 68 | 'title' => 'Node Abuse', |
| 69 | 69 | 'global' => FALSE, |
| 70 | 70 | 'types' => array( |
| 71 | - '0' => 'forum', |
|
| 72 | - '1' => 'profile', |
|
| 73 | - '2' => 'team_forum', |
|
| 71 | + '0' => 'forum', |
|
| 72 | + '1' => 'profile', |
|
| 73 | + '2' => 'team_forum', |
|
| 74 | 74 | ), |
| 75 | 75 | 'flag_short' => 'Report', |
| 76 | 76 | 'flag_long' => 'Report this content as offensive.', |
@@ -81,12 +81,12 @@ discard block |
||
| 81 | 81 | 'unflag_denied_text' => '', |
| 82 | 82 | 'link_type' => 'toggle', |
| 83 | 83 | 'roles' => array( |
| 84 | - 'flag' => array( |
|
| 84 | + 'flag' => array( |
|
| 85 | 85 | '0' => 2, |
| 86 | - ), |
|
| 87 | - 'unflag' => array( |
|
| 86 | + ), |
|
| 87 | + 'unflag' => array( |
|
| 88 | 88 | '0' => 2, |
| 89 | - ), |
|
| 89 | + ), |
|
| 90 | 90 | ), |
| 91 | 91 | 'weight' => 0, |
| 92 | 92 | 'show_on_page' => 1, |
@@ -96,12 +96,12 @@ discard block |
||
| 96 | 96 | 'i18n' => '0', |
| 97 | 97 | 'module' => 'boinc_standard', |
| 98 | 98 | 'locked' => array( |
| 99 | - '0' => 'name', |
|
| 99 | + '0' => 'name', |
|
| 100 | 100 | ), |
| 101 | 101 | 'api_version' => 2, |
| 102 | - ); |
|
| 103 | - // Exported flag: "User Abuse". |
|
| 104 | - $flags['abuse_user'] = array( |
|
| 102 | + ); |
|
| 103 | + // Exported flag: "User Abuse". |
|
| 104 | + $flags['abuse_user'] = array( |
|
| 105 | 105 | 'content_type' => 'user', |
| 106 | 106 | 'title' => 'User Abuse', |
| 107 | 107 | 'global' => '0', |
@@ -115,12 +115,12 @@ discard block |
||
| 115 | 115 | 'unflag_denied_text' => '', |
| 116 | 116 | 'link_type' => 'confirm', |
| 117 | 117 | 'roles' => array( |
| 118 | - 'flag' => array( |
|
| 118 | + 'flag' => array( |
|
| 119 | 119 | '0' => '2', |
| 120 | - ), |
|
| 121 | - 'unflag' => array( |
|
| 120 | + ), |
|
| 121 | + 'unflag' => array( |
|
| 122 | 122 | '0' => '2', |
| 123 | - ), |
|
| 123 | + ), |
|
| 124 | 124 | ), |
| 125 | 125 | 'weight' => 0, |
| 126 | 126 | 'show_on_profile' => TRUE, |
@@ -129,19 +129,19 @@ discard block |
||
| 129 | 129 | 'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
| 130 | 130 | 'module' => 'boinc_standard', |
| 131 | 131 | 'locked' => array( |
| 132 | - '0' => 'name', |
|
| 132 | + '0' => 'name', |
|
| 133 | 133 | ), |
| 134 | 134 | 'api_version' => 2, |
| 135 | - ); |
|
| 136 | - // Exported flag: "Subscriptions". |
|
| 137 | - $flags['subscriptions'] = array( |
|
| 135 | + ); |
|
| 136 | + // Exported flag: "Subscriptions". |
|
| 137 | + $flags['subscriptions'] = array( |
|
| 138 | 138 | 'content_type' => 'node', |
| 139 | 139 | 'title' => 'Subscriptions', |
| 140 | 140 | 'global' => '0', |
| 141 | 141 | 'types' => array( |
| 142 | - '0' => 'forum', |
|
| 143 | - '1' => 'news', |
|
| 144 | - '2' => 'team_forum', |
|
| 142 | + '0' => 'forum', |
|
| 143 | + '1' => 'news', |
|
| 144 | + '2' => 'team_forum', |
|
| 145 | 145 | ), |
| 146 | 146 | 'flag_short' => 'subscribe', |
| 147 | 147 | 'flag_long' => 'Subscribe to this topic', |
@@ -152,12 +152,12 @@ discard block |
||
| 152 | 152 | 'unflag_denied_text' => '', |
| 153 | 153 | 'link_type' => 'toggle', |
| 154 | 154 | 'roles' => array( |
| 155 | - 'flag' => array( |
|
| 155 | + 'flag' => array( |
|
| 156 | 156 | '0' => 2, |
| 157 | - ), |
|
| 158 | - 'unflag' => array( |
|
| 157 | + ), |
|
| 158 | + 'unflag' => array( |
|
| 159 | 159 | '0' => 2, |
| 160 | - ), |
|
| 160 | + ), |
|
| 161 | 161 | ), |
| 162 | 162 | 'weight' => 0, |
| 163 | 163 | 'show_on_page' => 1, |
@@ -167,11 +167,11 @@ discard block |
||
| 167 | 167 | 'i18n' => '0', |
| 168 | 168 | 'module' => 'boinc_standard', |
| 169 | 169 | 'locked' => array( |
| 170 | - '0' => 'name', |
|
| 170 | + '0' => 'name', |
|
| 171 | 171 | ), |
| 172 | 172 | 'api_version' => 2, |
| 173 | - ); |
|
| 174 | - return $flags; |
|
| 173 | + ); |
|
| 174 | + return $flags; |
|
| 175 | 175 | |
| 176 | 176 | } |
| 177 | 177 | |
@@ -179,2084 +179,2084 @@ discard block |
||
| 179 | 179 | * Implementation of hook_node_info(). |
| 180 | 180 | */ |
| 181 | 181 | function boinc_standard_node_info() { |
| 182 | - $items = array( |
|
| 182 | + $items = array( |
|
| 183 | 183 | 'page' => array( |
| 184 | - 'name' => t('Page'), |
|
| 185 | - 'module' => 'features', |
|
| 186 | - 'description' => t('A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.'), |
|
| 187 | - 'has_title' => '1', |
|
| 188 | - 'title_label' => t('Title'), |
|
| 189 | - 'has_body' => '1', |
|
| 190 | - 'body_label' => t('Body'), |
|
| 191 | - 'min_word_count' => '0', |
|
| 192 | - 'help' => '', |
|
| 184 | + 'name' => t('Page'), |
|
| 185 | + 'module' => 'features', |
|
| 186 | + 'description' => t('A <em>page</em>, similar in form to a <em>story</em>, is a simple method for creating and displaying information that rarely changes, such as an "About us" section of a website. By default, a <em>page</em> entry does not allow visitor comments and is not featured on the site\'s initial home page.'), |
|
| 187 | + 'has_title' => '1', |
|
| 188 | + 'title_label' => t('Title'), |
|
| 189 | + 'has_body' => '1', |
|
| 190 | + 'body_label' => t('Body'), |
|
| 191 | + 'min_word_count' => '0', |
|
| 192 | + 'help' => '', |
|
| 193 | 193 | ), |
| 194 | - ); |
|
| 195 | - return $items; |
|
| 194 | + ); |
|
| 195 | + return $items; |
|
| 196 | 196 | } |
| 197 | 197 | |
| 198 | 198 | /** |
| 199 | 199 | * Implementation of hook_rules_defaults(). |
| 200 | 200 | */ |
| 201 | 201 | function boinc_standard_rules_defaults() { |
| 202 | - return array( |
|
| 202 | + return array( |
|
| 203 | 203 | 'rules' => array( |
| 204 | - 'rules_forum_topic_marked_sticky_by_moderator_admin' => array( |
|
| 204 | + 'rules_forum_topic_marked_sticky_by_moderator_admin' => array( |
|
| 205 | 205 | '#type' => 'rule', |
| 206 | 206 | '#set' => 'event_node_update', |
| 207 | 207 | '#label' => 'Forum topic marked sticky by moderator/admin', |
| 208 | 208 | '#active' => 1, |
| 209 | 209 | '#weight' => '0', |
| 210 | 210 | '#categories' => array( |
| 211 | - '0' => 'boinc_standard', |
|
| 212 | - '1' => 'moderator notification', |
|
| 211 | + '0' => 'boinc_standard', |
|
| 212 | + '1' => 'moderator notification', |
|
| 213 | 213 | ), |
| 214 | 214 | '#status' => 'default', |
| 215 | 215 | '#conditions' => array( |
| 216 | - '0' => array( |
|
| 216 | + '0' => array( |
|
| 217 | 217 | '#type' => 'condition', |
| 218 | 218 | '#settings' => array( |
| 219 | - 'roles' => array( |
|
| 219 | + 'roles' => array( |
|
| 220 | 220 | '0' => 3519698132, |
| 221 | 221 | '1' => 1271379760, |
| 222 | - ), |
|
| 223 | - 'operation' => 'OR', |
|
| 224 | - '#argument map' => array( |
|
| 222 | + ), |
|
| 223 | + 'operation' => 'OR', |
|
| 224 | + '#argument map' => array( |
|
| 225 | 225 | 'user' => 'user', |
| 226 | - ), |
|
| 226 | + ), |
|
| 227 | 227 | ), |
| 228 | 228 | '#name' => 'rules_condition_user_hasrole', |
| 229 | 229 | '#info' => array( |
| 230 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 231 | - 'label callback' => FALSE, |
|
| 232 | - 'arguments' => array( |
|
| 230 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 231 | + 'label callback' => FALSE, |
|
| 232 | + 'arguments' => array( |
|
| 233 | 233 | 'user' => array( |
| 234 | - 'type' => 'user', |
|
| 235 | - 'label' => 'User', |
|
| 234 | + 'type' => 'user', |
|
| 235 | + 'label' => 'User', |
|
| 236 | + ), |
|
| 236 | 237 | ), |
| 237 | - ), |
|
| 238 | - 'module' => 'User', |
|
| 238 | + 'module' => 'User', |
|
| 239 | 239 | ), |
| 240 | 240 | '#weight' => 0, |
| 241 | - ), |
|
| 242 | - '1' => array( |
|
| 241 | + ), |
|
| 242 | + '1' => array( |
|
| 243 | 243 | '#weight' => 0, |
| 244 | 244 | '0' => array( |
| 245 | - '#weight' => 0, |
|
| 246 | - '#type' => 'condition', |
|
| 247 | - '#settings' => array( |
|
| 245 | + '#weight' => 0, |
|
| 246 | + '#type' => 'condition', |
|
| 247 | + '#settings' => array( |
|
| 248 | 248 | 'type' => array( |
| 249 | - 'forum' => 'forum', |
|
| 249 | + 'forum' => 'forum', |
|
| 250 | 250 | ), |
| 251 | 251 | '#argument map' => array( |
| 252 | - 'node' => 'node', |
|
| 252 | + 'node' => 'node', |
|
| 253 | 253 | ), |
| 254 | - ), |
|
| 255 | - '#name' => 'rules_condition_content_is_type', |
|
| 256 | - '#info' => array( |
|
| 254 | + ), |
|
| 255 | + '#name' => 'rules_condition_content_is_type', |
|
| 256 | + '#info' => array( |
|
| 257 | 257 | 'label' => 'Updated content is Forum topic', |
| 258 | 258 | 'arguments' => array( |
| 259 | - 'node' => array( |
|
| 259 | + 'node' => array( |
|
| 260 | 260 | 'type' => 'node', |
| 261 | 261 | 'label' => 'Content', |
| 262 | - ), |
|
| 262 | + ), |
|
| 263 | 263 | ), |
| 264 | 264 | 'module' => 'Node', |
| 265 | - ), |
|
| 265 | + ), |
|
| 266 | 266 | ), |
| 267 | 267 | '#type' => 'OR', |
| 268 | 268 | '1' => array( |
| 269 | - '#type' => 'condition', |
|
| 270 | - '#settings' => array( |
|
| 269 | + '#type' => 'condition', |
|
| 270 | + '#settings' => array( |
|
| 271 | 271 | 'type' => array( |
| 272 | - 'team_forum' => 'team_forum', |
|
| 272 | + 'team_forum' => 'team_forum', |
|
| 273 | 273 | ), |
| 274 | 274 | '#argument map' => array( |
| 275 | - 'node' => 'node', |
|
| 275 | + 'node' => 'node', |
|
| 276 | 276 | ), |
| 277 | - ), |
|
| 278 | - '#name' => 'rules_condition_content_is_type', |
|
| 279 | - '#info' => array( |
|
| 277 | + ), |
|
| 278 | + '#name' => 'rules_condition_content_is_type', |
|
| 279 | + '#info' => array( |
|
| 280 | 280 | 'label' => 'Updated content is Team forum topic', |
| 281 | 281 | 'arguments' => array( |
| 282 | - 'node' => array( |
|
| 282 | + 'node' => array( |
|
| 283 | 283 | 'type' => 'node', |
| 284 | 284 | 'label' => 'Content', |
| 285 | - ), |
|
| 285 | + ), |
|
| 286 | 286 | ), |
| 287 | 287 | 'module' => 'Node', |
| 288 | - ), |
|
| 289 | - '#weight' => 0, |
|
| 288 | + ), |
|
| 289 | + '#weight' => 0, |
|
| 290 | + ), |
|
| 290 | 291 | ), |
| 291 | - ), |
|
| 292 | - '3' => array( |
|
| 292 | + '3' => array( |
|
| 293 | 293 | '#weight' => 0, |
| 294 | 294 | '#info' => array( |
| 295 | - 'label' => 'PHP code: node content unchanged', |
|
| 296 | - 'label callback' => FALSE, |
|
| 297 | - 'module' => 'PHP', |
|
| 298 | - 'eval input' => array( |
|
| 295 | + 'label' => 'PHP code: node content unchanged', |
|
| 296 | + 'label callback' => FALSE, |
|
| 297 | + 'module' => 'PHP', |
|
| 298 | + 'eval input' => array( |
|
| 299 | 299 | '0' => 'code', |
| 300 | - ), |
|
| 300 | + ), |
|
| 301 | 301 | ), |
| 302 | 302 | '#name' => 'rules_condition_custom_php', |
| 303 | 303 | '#settings' => array( |
| 304 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 305 | - 'vars' => array( |
|
| 304 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 305 | + 'vars' => array( |
|
| 306 | 306 | '0' => 'node', |
| 307 | 307 | '1' => 'node_unchanged', |
| 308 | - ), |
|
| 309 | - '#eval input' => array( |
|
| 308 | + ), |
|
| 309 | + '#eval input' => array( |
|
| 310 | 310 | 'token_rules_input_evaluator' => array( |
| 311 | - 'code' => array( |
|
| 311 | + 'code' => array( |
|
| 312 | 312 | '0' => ':global', |
| 313 | - ), |
|
| 313 | + ), |
|
| 314 | + ), |
|
| 314 | 315 | ), |
| 315 | - ), |
|
| 316 | 316 | ), |
| 317 | 317 | '#type' => 'condition', |
| 318 | - ), |
|
| 319 | - '4' => array( |
|
| 318 | + ), |
|
| 319 | + '4' => array( |
|
| 320 | 320 | '#weight' => 0, |
| 321 | 321 | '#info' => array( |
| 322 | - 'label' => 'PHP code: node made sticky', |
|
| 323 | - 'label callback' => FALSE, |
|
| 324 | - 'module' => 'PHP', |
|
| 325 | - 'eval input' => array( |
|
| 322 | + 'label' => 'PHP code: node made sticky', |
|
| 323 | + 'label callback' => FALSE, |
|
| 324 | + 'module' => 'PHP', |
|
| 325 | + 'eval input' => array( |
|
| 326 | 326 | '0' => 'code', |
| 327 | - ), |
|
| 327 | + ), |
|
| 328 | 328 | ), |
| 329 | 329 | '#name' => 'rules_condition_custom_php', |
| 330 | 330 | '#type' => 'condition', |
| 331 | 331 | '#settings' => array( |
| 332 | - 'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;', |
|
| 333 | - 'vars' => array( |
|
| 332 | + 'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;', |
|
| 333 | + 'vars' => array( |
|
| 334 | 334 | '0' => 'node', |
| 335 | 335 | '1' => 'node_unchanged', |
| 336 | - ), |
|
| 337 | - '#eval input' => array( |
|
| 336 | + ), |
|
| 337 | + '#eval input' => array( |
|
| 338 | 338 | 'token_rules_input_evaluator' => array( |
| 339 | - 'code' => array( |
|
| 339 | + 'code' => array( |
|
| 340 | 340 | '0' => ':global', |
| 341 | - ), |
|
| 341 | + ), |
|
| 342 | 342 | ), |
| 343 | - ), |
|
| 343 | + ), |
|
| 344 | + ), |
|
| 344 | 345 | ), |
| 345 | - ), |
|
| 346 | 346 | ), |
| 347 | 347 | '#actions' => array( |
| 348 | - '0' => array( |
|
| 348 | + '0' => array( |
|
| 349 | 349 | '#info' => array( |
| 350 | - 'label' => 'Notify moderators via email', |
|
| 351 | - 'module' => 'BOINC core', |
|
| 352 | - 'eval input' => array( |
|
| 350 | + 'label' => 'Notify moderators via email', |
|
| 351 | + 'module' => 'BOINC core', |
|
| 352 | + 'eval input' => array( |
|
| 353 | 353 | '0' => 'subject', |
| 354 | 354 | '1' => 'message', |
| 355 | 355 | '2' => 'from', |
| 356 | - ), |
|
| 356 | + ), |
|
| 357 | 357 | ), |
| 358 | 358 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 359 | 359 | '#settings' => array( |
| 360 | - 'from' => '', |
|
| 361 | - 'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin', |
|
| 362 | - 'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 363 | - '#eval input' => array( |
|
| 360 | + 'from' => '', |
|
| 361 | + 'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin', |
|
| 362 | + 'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 363 | + '#eval input' => array( |
|
| 364 | 364 | 'token_rules_input_evaluator' => array( |
| 365 | - 'subject' => array( |
|
| 365 | + 'subject' => array( |
|
| 366 | 366 | '0' => ':global', |
| 367 | - ), |
|
| 368 | - 'message' => array( |
|
| 367 | + ), |
|
| 368 | + 'message' => array( |
|
| 369 | 369 | '0' => 'node', |
| 370 | 370 | '1' => 'user', |
| 371 | 371 | '2' => ':global', |
| 372 | - ), |
|
| 373 | - 'from' => array( |
|
| 372 | + ), |
|
| 373 | + 'from' => array( |
|
| 374 | 374 | '0' => ':global', |
| 375 | - ), |
|
| 375 | + ), |
|
| 376 | + ), |
|
| 376 | 377 | ), |
| 377 | - ), |
|
| 378 | 378 | ), |
| 379 | 379 | '#type' => 'action', |
| 380 | 380 | '#weight' => 0, |
| 381 | - ), |
|
| 381 | + ), |
|
| 382 | 382 | ), |
| 383 | 383 | '#version' => 6003, |
| 384 | - ), |
|
| 385 | - 'rules_forum_topic_marked_unsticky_by_moderator_admin' => array( |
|
| 384 | + ), |
|
| 385 | + 'rules_forum_topic_marked_unsticky_by_moderator_admin' => array( |
|
| 386 | 386 | '#type' => 'rule', |
| 387 | 387 | '#set' => 'event_node_update', |
| 388 | 388 | '#label' => 'Forum topic marked unsticky by moderator/admin', |
| 389 | 389 | '#active' => 1, |
| 390 | 390 | '#weight' => '0', |
| 391 | 391 | '#categories' => array( |
| 392 | - '0' => 'boinc_standard', |
|
| 393 | - '1' => 'moderator notification', |
|
| 392 | + '0' => 'boinc_standard', |
|
| 393 | + '1' => 'moderator notification', |
|
| 394 | 394 | ), |
| 395 | 395 | '#status' => 'default', |
| 396 | 396 | '#conditions' => array( |
| 397 | - '0' => array( |
|
| 397 | + '0' => array( |
|
| 398 | 398 | '#type' => 'condition', |
| 399 | 399 | '#settings' => array( |
| 400 | - 'roles' => array( |
|
| 400 | + 'roles' => array( |
|
| 401 | 401 | '0' => 3519698132, |
| 402 | 402 | '1' => 1271379760, |
| 403 | - ), |
|
| 404 | - 'operation' => 'OR', |
|
| 405 | - '#argument map' => array( |
|
| 403 | + ), |
|
| 404 | + 'operation' => 'OR', |
|
| 405 | + '#argument map' => array( |
|
| 406 | 406 | 'user' => 'user', |
| 407 | - ), |
|
| 407 | + ), |
|
| 408 | 408 | ), |
| 409 | 409 | '#name' => 'rules_condition_user_hasrole', |
| 410 | 410 | '#info' => array( |
| 411 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 412 | - 'label callback' => FALSE, |
|
| 413 | - 'arguments' => array( |
|
| 411 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 412 | + 'label callback' => FALSE, |
|
| 413 | + 'arguments' => array( |
|
| 414 | 414 | 'user' => array( |
| 415 | - 'type' => 'user', |
|
| 416 | - 'label' => 'User', |
|
| 415 | + 'type' => 'user', |
|
| 416 | + 'label' => 'User', |
|
| 417 | 417 | ), |
| 418 | - ), |
|
| 419 | - 'module' => 'User', |
|
| 418 | + ), |
|
| 419 | + 'module' => 'User', |
|
| 420 | 420 | ), |
| 421 | 421 | '#weight' => 0, |
| 422 | - ), |
|
| 423 | - '1' => array( |
|
| 422 | + ), |
|
| 423 | + '1' => array( |
|
| 424 | 424 | '#weight' => 0, |
| 425 | 425 | '0' => array( |
| 426 | - '#weight' => 0, |
|
| 427 | - '#type' => 'condition', |
|
| 428 | - '#settings' => array( |
|
| 426 | + '#weight' => 0, |
|
| 427 | + '#type' => 'condition', |
|
| 428 | + '#settings' => array( |
|
| 429 | 429 | 'type' => array( |
| 430 | - 'forum' => 'forum', |
|
| 430 | + 'forum' => 'forum', |
|
| 431 | 431 | ), |
| 432 | 432 | '#argument map' => array( |
| 433 | - 'node' => 'node', |
|
| 433 | + 'node' => 'node', |
|
| 434 | + ), |
|
| 434 | 435 | ), |
| 435 | - ), |
|
| 436 | - '#name' => 'rules_condition_content_is_type', |
|
| 437 | - '#info' => array( |
|
| 436 | + '#name' => 'rules_condition_content_is_type', |
|
| 437 | + '#info' => array( |
|
| 438 | 438 | 'label' => 'Updated content is Forum topic', |
| 439 | 439 | 'arguments' => array( |
| 440 | - 'node' => array( |
|
| 440 | + 'node' => array( |
|
| 441 | 441 | 'type' => 'node', |
| 442 | 442 | 'label' => 'Content', |
| 443 | - ), |
|
| 443 | + ), |
|
| 444 | 444 | ), |
| 445 | 445 | 'module' => 'Node', |
| 446 | - ), |
|
| 446 | + ), |
|
| 447 | 447 | ), |
| 448 | 448 | '#type' => 'OR', |
| 449 | 449 | '1' => array( |
| 450 | - '#type' => 'condition', |
|
| 451 | - '#settings' => array( |
|
| 450 | + '#type' => 'condition', |
|
| 451 | + '#settings' => array( |
|
| 452 | 452 | 'type' => array( |
| 453 | - 'team_forum' => 'team_forum', |
|
| 453 | + 'team_forum' => 'team_forum', |
|
| 454 | 454 | ), |
| 455 | 455 | '#argument map' => array( |
| 456 | - 'node' => 'node', |
|
| 456 | + 'node' => 'node', |
|
| 457 | + ), |
|
| 457 | 458 | ), |
| 458 | - ), |
|
| 459 | - '#name' => 'rules_condition_content_is_type', |
|
| 460 | - '#info' => array( |
|
| 459 | + '#name' => 'rules_condition_content_is_type', |
|
| 460 | + '#info' => array( |
|
| 461 | 461 | 'label' => 'Updated content is Team forum topic', |
| 462 | 462 | 'arguments' => array( |
| 463 | - 'node' => array( |
|
| 463 | + 'node' => array( |
|
| 464 | 464 | 'type' => 'node', |
| 465 | 465 | 'label' => 'Content', |
| 466 | - ), |
|
| 466 | + ), |
|
| 467 | 467 | ), |
| 468 | 468 | 'module' => 'Node', |
| 469 | - ), |
|
| 470 | - '#weight' => 0, |
|
| 469 | + ), |
|
| 470 | + '#weight' => 0, |
|
| 471 | + ), |
|
| 471 | 472 | ), |
| 472 | - ), |
|
| 473 | - '3' => array( |
|
| 473 | + '3' => array( |
|
| 474 | 474 | '#weight' => 0, |
| 475 | 475 | '#info' => array( |
| 476 | - 'label' => 'PHP code: node content unchanged', |
|
| 477 | - 'label callback' => FALSE, |
|
| 478 | - 'module' => 'PHP', |
|
| 479 | - 'eval input' => array( |
|
| 476 | + 'label' => 'PHP code: node content unchanged', |
|
| 477 | + 'label callback' => FALSE, |
|
| 478 | + 'module' => 'PHP', |
|
| 479 | + 'eval input' => array( |
|
| 480 | 480 | '0' => 'code', |
| 481 | - ), |
|
| 481 | + ), |
|
| 482 | 482 | ), |
| 483 | 483 | '#name' => 'rules_condition_custom_php', |
| 484 | 484 | '#settings' => array( |
| 485 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 486 | - 'vars' => array( |
|
| 485 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 486 | + 'vars' => array( |
|
| 487 | 487 | '0' => 'node', |
| 488 | 488 | '1' => 'node_unchanged', |
| 489 | - ), |
|
| 490 | - '#eval input' => array( |
|
| 489 | + ), |
|
| 490 | + '#eval input' => array( |
|
| 491 | 491 | 'token_rules_input_evaluator' => array( |
| 492 | - 'code' => array( |
|
| 492 | + 'code' => array( |
|
| 493 | 493 | '0' => ':global', |
| 494 | - ), |
|
| 494 | + ), |
|
| 495 | + ), |
|
| 495 | 496 | ), |
| 496 | - ), |
|
| 497 | 497 | ), |
| 498 | 498 | '#type' => 'condition', |
| 499 | - ), |
|
| 500 | - '4' => array( |
|
| 499 | + ), |
|
| 500 | + '4' => array( |
|
| 501 | 501 | '#weight' => 0, |
| 502 | 502 | '#info' => array( |
| 503 | - 'label' => 'PHP code: node made sticky', |
|
| 504 | - 'label callback' => FALSE, |
|
| 505 | - 'module' => 'PHP', |
|
| 506 | - 'eval input' => array( |
|
| 503 | + 'label' => 'PHP code: node made sticky', |
|
| 504 | + 'label callback' => FALSE, |
|
| 505 | + 'module' => 'PHP', |
|
| 506 | + 'eval input' => array( |
|
| 507 | 507 | '0' => 'code', |
| 508 | - ), |
|
| 508 | + ), |
|
| 509 | 509 | ), |
| 510 | 510 | '#name' => 'rules_condition_custom_php', |
| 511 | 511 | '#type' => 'condition', |
| 512 | 512 | '#settings' => array( |
| 513 | - 'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;', |
|
| 514 | - 'vars' => array( |
|
| 513 | + 'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;', |
|
| 514 | + 'vars' => array( |
|
| 515 | 515 | '0' => 'node', |
| 516 | 516 | '1' => 'node_unchanged', |
| 517 | - ), |
|
| 518 | - '#eval input' => array( |
|
| 517 | + ), |
|
| 518 | + '#eval input' => array( |
|
| 519 | 519 | 'token_rules_input_evaluator' => array( |
| 520 | - 'code' => array( |
|
| 520 | + 'code' => array( |
|
| 521 | 521 | '0' => ':global', |
| 522 | - ), |
|
| 522 | + ), |
|
| 523 | + ), |
|
| 523 | 524 | ), |
| 524 | - ), |
|
| 525 | 525 | ), |
| 526 | - ), |
|
| 526 | + ), |
|
| 527 | 527 | ), |
| 528 | 528 | '#actions' => array( |
| 529 | - '0' => array( |
|
| 529 | + '0' => array( |
|
| 530 | 530 | '#info' => array( |
| 531 | - 'label' => 'Notify moderators via email', |
|
| 532 | - 'module' => 'BOINC core', |
|
| 533 | - 'eval input' => array( |
|
| 531 | + 'label' => 'Notify moderators via email', |
|
| 532 | + 'module' => 'BOINC core', |
|
| 533 | + 'eval input' => array( |
|
| 534 | 534 | '0' => 'subject', |
| 535 | 535 | '1' => 'message', |
| 536 | 536 | '2' => 'from', |
| 537 | - ), |
|
| 537 | + ), |
|
| 538 | 538 | ), |
| 539 | 539 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 540 | 540 | '#settings' => array( |
| 541 | - 'from' => '', |
|
| 542 | - 'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin', |
|
| 543 | - 'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 544 | - '#eval input' => array( |
|
| 541 | + 'from' => '', |
|
| 542 | + 'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin', |
|
| 543 | + 'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 544 | + '#eval input' => array( |
|
| 545 | 545 | 'token_rules_input_evaluator' => array( |
| 546 | - 'subject' => array( |
|
| 546 | + 'subject' => array( |
|
| 547 | 547 | '0' => ':global', |
| 548 | - ), |
|
| 549 | - 'message' => array( |
|
| 548 | + ), |
|
| 549 | + 'message' => array( |
|
| 550 | 550 | '0' => 'node', |
| 551 | 551 | '1' => 'user', |
| 552 | 552 | '2' => ':global', |
| 553 | - ), |
|
| 554 | - 'from' => array( |
|
| 553 | + ), |
|
| 554 | + 'from' => array( |
|
| 555 | 555 | '0' => ':global', |
| 556 | - ), |
|
| 556 | + ), |
|
| 557 | + ), |
|
| 557 | 558 | ), |
| 558 | - ), |
|
| 559 | 559 | ), |
| 560 | 560 | '#type' => 'action', |
| 561 | 561 | '#weight' => 0, |
| 562 | - ), |
|
| 562 | + ), |
|
| 563 | 563 | ), |
| 564 | 564 | '#version' => 6003, |
| 565 | - ), |
|
| 566 | - 'rules_forum_topic_locked_by_moderator_admin' => array( |
|
| 565 | + ), |
|
| 566 | + 'rules_forum_topic_locked_by_moderator_admin' => array( |
|
| 567 | 567 | '#type' => 'rule', |
| 568 | 568 | '#set' => 'event_node_update', |
| 569 | 569 | '#label' => 'Forum topic locked by moderator/admin', |
| 570 | 570 | '#active' => 1, |
| 571 | 571 | '#weight' => '0', |
| 572 | 572 | '#categories' => array( |
| 573 | - '0' => 'boinc_standard', |
|
| 574 | - '1' => 'moderator notification', |
|
| 573 | + '0' => 'boinc_standard', |
|
| 574 | + '1' => 'moderator notification', |
|
| 575 | 575 | ), |
| 576 | 576 | '#status' => 'default', |
| 577 | 577 | '#conditions' => array( |
| 578 | - '0' => array( |
|
| 578 | + '0' => array( |
|
| 579 | 579 | '#type' => 'condition', |
| 580 | 580 | '#settings' => array( |
| 581 | - 'roles' => array( |
|
| 581 | + 'roles' => array( |
|
| 582 | 582 | '0' => 3519698132, |
| 583 | 583 | '1' => 1271379760, |
| 584 | - ), |
|
| 585 | - 'operation' => 'OR', |
|
| 586 | - '#argument map' => array( |
|
| 584 | + ), |
|
| 585 | + 'operation' => 'OR', |
|
| 586 | + '#argument map' => array( |
|
| 587 | 587 | 'user' => 'user', |
| 588 | - ), |
|
| 588 | + ), |
|
| 589 | 589 | ), |
| 590 | 590 | '#name' => 'rules_condition_user_hasrole', |
| 591 | 591 | '#info' => array( |
| 592 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 593 | - 'label callback' => FALSE, |
|
| 594 | - 'arguments' => array( |
|
| 592 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 593 | + 'label callback' => FALSE, |
|
| 594 | + 'arguments' => array( |
|
| 595 | 595 | 'user' => array( |
| 596 | - 'type' => 'user', |
|
| 597 | - 'label' => 'User', |
|
| 596 | + 'type' => 'user', |
|
| 597 | + 'label' => 'User', |
|
| 598 | + ), |
|
| 598 | 599 | ), |
| 599 | - ), |
|
| 600 | - 'module' => 'User', |
|
| 600 | + 'module' => 'User', |
|
| 601 | 601 | ), |
| 602 | 602 | '#weight' => 0, |
| 603 | - ), |
|
| 604 | - '1' => array( |
|
| 603 | + ), |
|
| 604 | + '1' => array( |
|
| 605 | 605 | '#weight' => 0, |
| 606 | 606 | '0' => array( |
| 607 | - '#weight' => 0, |
|
| 608 | - '#type' => 'condition', |
|
| 609 | - '#settings' => array( |
|
| 607 | + '#weight' => 0, |
|
| 608 | + '#type' => 'condition', |
|
| 609 | + '#settings' => array( |
|
| 610 | 610 | 'type' => array( |
| 611 | - 'forum' => 'forum', |
|
| 611 | + 'forum' => 'forum', |
|
| 612 | 612 | ), |
| 613 | 613 | '#argument map' => array( |
| 614 | - 'node' => 'node', |
|
| 614 | + 'node' => 'node', |
|
| 615 | 615 | ), |
| 616 | - ), |
|
| 617 | - '#name' => 'rules_condition_content_is_type', |
|
| 618 | - '#info' => array( |
|
| 616 | + ), |
|
| 617 | + '#name' => 'rules_condition_content_is_type', |
|
| 618 | + '#info' => array( |
|
| 619 | 619 | 'label' => 'Updated content is Forum topic', |
| 620 | 620 | 'arguments' => array( |
| 621 | - 'node' => array( |
|
| 621 | + 'node' => array( |
|
| 622 | 622 | 'type' => 'node', |
| 623 | 623 | 'label' => 'Content', |
| 624 | - ), |
|
| 624 | + ), |
|
| 625 | 625 | ), |
| 626 | 626 | 'module' => 'Node', |
| 627 | - ), |
|
| 627 | + ), |
|
| 628 | 628 | ), |
| 629 | 629 | '#type' => 'OR', |
| 630 | 630 | '1' => array( |
| 631 | - '#type' => 'condition', |
|
| 632 | - '#settings' => array( |
|
| 631 | + '#type' => 'condition', |
|
| 632 | + '#settings' => array( |
|
| 633 | 633 | 'type' => array( |
| 634 | - 'team_forum' => 'team_forum', |
|
| 634 | + 'team_forum' => 'team_forum', |
|
| 635 | 635 | ), |
| 636 | 636 | '#argument map' => array( |
| 637 | - 'node' => 'node', |
|
| 637 | + 'node' => 'node', |
|
| 638 | 638 | ), |
| 639 | - ), |
|
| 640 | - '#name' => 'rules_condition_content_is_type', |
|
| 641 | - '#info' => array( |
|
| 639 | + ), |
|
| 640 | + '#name' => 'rules_condition_content_is_type', |
|
| 641 | + '#info' => array( |
|
| 642 | 642 | 'label' => 'Updated content is Team forum topic', |
| 643 | 643 | 'arguments' => array( |
| 644 | - 'node' => array( |
|
| 644 | + 'node' => array( |
|
| 645 | 645 | 'type' => 'node', |
| 646 | 646 | 'label' => 'Content', |
| 647 | - ), |
|
| 647 | + ), |
|
| 648 | 648 | ), |
| 649 | 649 | 'module' => 'Node', |
| 650 | - ), |
|
| 651 | - '#weight' => 0, |
|
| 650 | + ), |
|
| 651 | + '#weight' => 0, |
|
| 652 | 652 | ), |
| 653 | - ), |
|
| 654 | - '3' => array( |
|
| 653 | + ), |
|
| 654 | + '3' => array( |
|
| 655 | 655 | '#weight' => 0, |
| 656 | 656 | '#info' => array( |
| 657 | - 'label' => 'PHP code: node content unchanged', |
|
| 658 | - 'label callback' => FALSE, |
|
| 659 | - 'module' => 'PHP', |
|
| 660 | - 'eval input' => array( |
|
| 657 | + 'label' => 'PHP code: node content unchanged', |
|
| 658 | + 'label callback' => FALSE, |
|
| 659 | + 'module' => 'PHP', |
|
| 660 | + 'eval input' => array( |
|
| 661 | 661 | '0' => 'code', |
| 662 | - ), |
|
| 662 | + ), |
|
| 663 | 663 | ), |
| 664 | 664 | '#name' => 'rules_condition_custom_php', |
| 665 | 665 | '#settings' => array( |
| 666 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 667 | - 'vars' => array( |
|
| 666 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 667 | + 'vars' => array( |
|
| 668 | 668 | '0' => 'node', |
| 669 | 669 | '1' => 'node_unchanged', |
| 670 | - ), |
|
| 671 | - '#eval input' => array( |
|
| 670 | + ), |
|
| 671 | + '#eval input' => array( |
|
| 672 | 672 | 'token_rules_input_evaluator' => array( |
| 673 | - 'code' => array( |
|
| 673 | + 'code' => array( |
|
| 674 | 674 | '0' => ':global', |
| 675 | - ), |
|
| 675 | + ), |
|
| 676 | + ), |
|
| 676 | 677 | ), |
| 677 | - ), |
|
| 678 | 678 | ), |
| 679 | 679 | '#type' => 'condition', |
| 680 | - ), |
|
| 681 | - '4' => array( |
|
| 680 | + ), |
|
| 681 | + '4' => array( |
|
| 682 | 682 | '#weight' => 0, |
| 683 | 683 | '#info' => array( |
| 684 | - 'label' => 'PHP code: node locked', |
|
| 685 | - 'label callback' => FALSE, |
|
| 686 | - 'module' => 'PHP', |
|
| 687 | - 'eval input' => array( |
|
| 684 | + 'label' => 'PHP code: node locked', |
|
| 685 | + 'label callback' => FALSE, |
|
| 686 | + 'module' => 'PHP', |
|
| 687 | + 'eval input' => array( |
|
| 688 | 688 | '0' => 'code', |
| 689 | - ), |
|
| 689 | + ), |
|
| 690 | 690 | ), |
| 691 | 691 | '#name' => 'rules_condition_custom_php', |
| 692 | 692 | '#type' => 'condition', |
| 693 | 693 | '#settings' => array( |
| 694 | - 'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;', |
|
| 695 | - 'vars' => array( |
|
| 694 | + 'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;', |
|
| 695 | + 'vars' => array( |
|
| 696 | 696 | '0' => 'node', |
| 697 | 697 | '1' => 'node_unchanged', |
| 698 | - ), |
|
| 699 | - '#eval input' => array( |
|
| 698 | + ), |
|
| 699 | + '#eval input' => array( |
|
| 700 | 700 | 'token_rules_input_evaluator' => array( |
| 701 | - 'code' => array( |
|
| 701 | + 'code' => array( |
|
| 702 | 702 | '0' => ':global', |
| 703 | - ), |
|
| 703 | + ), |
|
| 704 | 704 | ), |
| 705 | - ), |
|
| 705 | + ), |
|
| 706 | + ), |
|
| 706 | 707 | ), |
| 707 | - ), |
|
| 708 | 708 | ), |
| 709 | 709 | '#actions' => array( |
| 710 | - '0' => array( |
|
| 710 | + '0' => array( |
|
| 711 | 711 | '#info' => array( |
| 712 | - 'label' => 'Notify moderators via email', |
|
| 713 | - 'module' => 'BOINC core', |
|
| 714 | - 'eval input' => array( |
|
| 712 | + 'label' => 'Notify moderators via email', |
|
| 713 | + 'module' => 'BOINC core', |
|
| 714 | + 'eval input' => array( |
|
| 715 | 715 | '0' => 'subject', |
| 716 | 716 | '1' => 'message', |
| 717 | 717 | '2' => 'from', |
| 718 | - ), |
|
| 718 | + ), |
|
| 719 | 719 | ), |
| 720 | 720 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 721 | 721 | '#settings' => array( |
| 722 | - 'from' => '', |
|
| 723 | - 'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin', |
|
| 724 | - 'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 725 | - '#eval input' => array( |
|
| 722 | + 'from' => '', |
|
| 723 | + 'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin', |
|
| 724 | + 'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 725 | + '#eval input' => array( |
|
| 726 | 726 | 'token_rules_input_evaluator' => array( |
| 727 | - 'subject' => array( |
|
| 727 | + 'subject' => array( |
|
| 728 | 728 | '0' => ':global', |
| 729 | - ), |
|
| 730 | - 'message' => array( |
|
| 729 | + ), |
|
| 730 | + 'message' => array( |
|
| 731 | 731 | '0' => 'node', |
| 732 | 732 | '1' => 'user', |
| 733 | 733 | '2' => ':global', |
| 734 | - ), |
|
| 735 | - 'from' => array( |
|
| 734 | + ), |
|
| 735 | + 'from' => array( |
|
| 736 | 736 | '0' => ':global', |
| 737 | - ), |
|
| 737 | + ), |
|
| 738 | + ), |
|
| 738 | 739 | ), |
| 739 | - ), |
|
| 740 | 740 | ), |
| 741 | 741 | '#type' => 'action', |
| 742 | 742 | '#weight' => 0, |
| 743 | - ), |
|
| 743 | + ), |
|
| 744 | 744 | ), |
| 745 | 745 | '#version' => 6003, |
| 746 | - ), |
|
| 747 | - 'rules_forum_topic_unlocked_by_moderator_admin' => array( |
|
| 746 | + ), |
|
| 747 | + 'rules_forum_topic_unlocked_by_moderator_admin' => array( |
|
| 748 | 748 | '#type' => 'rule', |
| 749 | 749 | '#set' => 'event_node_update', |
| 750 | 750 | '#label' => 'Forum topic unlocked by moderator/admin', |
| 751 | 751 | '#active' => 1, |
| 752 | 752 | '#weight' => '0', |
| 753 | 753 | '#categories' => array( |
| 754 | - '0' => 'boinc_standard', |
|
| 755 | - '1' => 'moderator notification', |
|
| 754 | + '0' => 'boinc_standard', |
|
| 755 | + '1' => 'moderator notification', |
|
| 756 | 756 | ), |
| 757 | 757 | '#status' => 'default', |
| 758 | 758 | '#conditions' => array( |
| 759 | - '0' => array( |
|
| 759 | + '0' => array( |
|
| 760 | 760 | '#type' => 'condition', |
| 761 | 761 | '#settings' => array( |
| 762 | - 'roles' => array( |
|
| 762 | + 'roles' => array( |
|
| 763 | 763 | '0' => 3519698132, |
| 764 | 764 | '1' => 1271379760, |
| 765 | - ), |
|
| 766 | - 'operation' => 'OR', |
|
| 767 | - '#argument map' => array( |
|
| 765 | + ), |
|
| 766 | + 'operation' => 'OR', |
|
| 767 | + '#argument map' => array( |
|
| 768 | 768 | 'user' => 'user', |
| 769 | - ), |
|
| 769 | + ), |
|
| 770 | 770 | ), |
| 771 | 771 | '#name' => 'rules_condition_user_hasrole', |
| 772 | 772 | '#info' => array( |
| 773 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 774 | - 'label callback' => FALSE, |
|
| 775 | - 'arguments' => array( |
|
| 773 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 774 | + 'label callback' => FALSE, |
|
| 775 | + 'arguments' => array( |
|
| 776 | 776 | 'user' => array( |
| 777 | - 'type' => 'user', |
|
| 778 | - 'label' => 'User', |
|
| 777 | + 'type' => 'user', |
|
| 778 | + 'label' => 'User', |
|
| 779 | + ), |
|
| 779 | 780 | ), |
| 780 | - ), |
|
| 781 | - 'module' => 'User', |
|
| 781 | + 'module' => 'User', |
|
| 782 | 782 | ), |
| 783 | 783 | '#weight' => 0, |
| 784 | - ), |
|
| 785 | - '1' => array( |
|
| 784 | + ), |
|
| 785 | + '1' => array( |
|
| 786 | 786 | '#weight' => 0, |
| 787 | 787 | '0' => array( |
| 788 | - '#weight' => 0, |
|
| 789 | - '#type' => 'condition', |
|
| 790 | - '#settings' => array( |
|
| 788 | + '#weight' => 0, |
|
| 789 | + '#type' => 'condition', |
|
| 790 | + '#settings' => array( |
|
| 791 | 791 | 'type' => array( |
| 792 | - 'forum' => 'forum', |
|
| 792 | + 'forum' => 'forum', |
|
| 793 | 793 | ), |
| 794 | 794 | '#argument map' => array( |
| 795 | - 'node' => 'node', |
|
| 795 | + 'node' => 'node', |
|
| 796 | + ), |
|
| 796 | 797 | ), |
| 797 | - ), |
|
| 798 | - '#name' => 'rules_condition_content_is_type', |
|
| 799 | - '#info' => array( |
|
| 798 | + '#name' => 'rules_condition_content_is_type', |
|
| 799 | + '#info' => array( |
|
| 800 | 800 | 'label' => 'Updated content is Forum topic', |
| 801 | 801 | 'arguments' => array( |
| 802 | - 'node' => array( |
|
| 802 | + 'node' => array( |
|
| 803 | 803 | 'type' => 'node', |
| 804 | 804 | 'label' => 'Content', |
| 805 | - ), |
|
| 805 | + ), |
|
| 806 | 806 | ), |
| 807 | 807 | 'module' => 'Node', |
| 808 | - ), |
|
| 808 | + ), |
|
| 809 | 809 | ), |
| 810 | 810 | '#type' => 'OR', |
| 811 | 811 | '1' => array( |
| 812 | - '#type' => 'condition', |
|
| 813 | - '#settings' => array( |
|
| 812 | + '#type' => 'condition', |
|
| 813 | + '#settings' => array( |
|
| 814 | 814 | 'type' => array( |
| 815 | - 'team_forum' => 'team_forum', |
|
| 815 | + 'team_forum' => 'team_forum', |
|
| 816 | 816 | ), |
| 817 | 817 | '#argument map' => array( |
| 818 | - 'node' => 'node', |
|
| 818 | + 'node' => 'node', |
|
| 819 | + ), |
|
| 819 | 820 | ), |
| 820 | - ), |
|
| 821 | - '#name' => 'rules_condition_content_is_type', |
|
| 822 | - '#info' => array( |
|
| 821 | + '#name' => 'rules_condition_content_is_type', |
|
| 822 | + '#info' => array( |
|
| 823 | 823 | 'label' => 'Updated content is Team forum topic', |
| 824 | 824 | 'arguments' => array( |
| 825 | - 'node' => array( |
|
| 825 | + 'node' => array( |
|
| 826 | 826 | 'type' => 'node', |
| 827 | 827 | 'label' => 'Content', |
| 828 | - ), |
|
| 828 | + ), |
|
| 829 | 829 | ), |
| 830 | 830 | 'module' => 'Node', |
| 831 | - ), |
|
| 832 | - '#weight' => 0, |
|
| 831 | + ), |
|
| 832 | + '#weight' => 0, |
|
| 833 | + ), |
|
| 833 | 834 | ), |
| 834 | - ), |
|
| 835 | - '3' => array( |
|
| 835 | + '3' => array( |
|
| 836 | 836 | '#weight' => 0, |
| 837 | 837 | '#info' => array( |
| 838 | - 'label' => 'PHP code: node content unchanged', |
|
| 839 | - 'label callback' => FALSE, |
|
| 840 | - 'module' => 'PHP', |
|
| 841 | - 'eval input' => array( |
|
| 838 | + 'label' => 'PHP code: node content unchanged', |
|
| 839 | + 'label callback' => FALSE, |
|
| 840 | + 'module' => 'PHP', |
|
| 841 | + 'eval input' => array( |
|
| 842 | 842 | '0' => 'code', |
| 843 | - ), |
|
| 843 | + ), |
|
| 844 | 844 | ), |
| 845 | 845 | '#name' => 'rules_condition_custom_php', |
| 846 | 846 | '#settings' => array( |
| 847 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 848 | - 'vars' => array( |
|
| 847 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 848 | + 'vars' => array( |
|
| 849 | 849 | '0' => 'node', |
| 850 | 850 | '1' => 'node_unchanged', |
| 851 | - ), |
|
| 852 | - '#eval input' => array( |
|
| 851 | + ), |
|
| 852 | + '#eval input' => array( |
|
| 853 | 853 | 'token_rules_input_evaluator' => array( |
| 854 | - 'code' => array( |
|
| 854 | + 'code' => array( |
|
| 855 | 855 | '0' => ':global', |
| 856 | - ), |
|
| 856 | + ), |
|
| 857 | + ), |
|
| 857 | 858 | ), |
| 858 | - ), |
|
| 859 | 859 | ), |
| 860 | 860 | '#type' => 'condition', |
| 861 | - ), |
|
| 862 | - '4' => array( |
|
| 861 | + ), |
|
| 862 | + '4' => array( |
|
| 863 | 863 | '#weight' => 0, |
| 864 | 864 | '#info' => array( |
| 865 | - 'label' => 'PHP code: node unlocked', |
|
| 866 | - 'label callback' => FALSE, |
|
| 867 | - 'module' => 'PHP', |
|
| 868 | - 'eval input' => array( |
|
| 865 | + 'label' => 'PHP code: node unlocked', |
|
| 866 | + 'label callback' => FALSE, |
|
| 867 | + 'module' => 'PHP', |
|
| 868 | + 'eval input' => array( |
|
| 869 | 869 | '0' => 'code', |
| 870 | - ), |
|
| 870 | + ), |
|
| 871 | 871 | ), |
| 872 | 872 | '#name' => 'rules_condition_custom_php', |
| 873 | 873 | '#type' => 'condition', |
| 874 | 874 | '#settings' => array( |
| 875 | - 'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;', |
|
| 876 | - 'vars' => array( |
|
| 875 | + 'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;', |
|
| 876 | + 'vars' => array( |
|
| 877 | 877 | '0' => 'node', |
| 878 | 878 | '1' => 'node_unchanged', |
| 879 | - ), |
|
| 880 | - '#eval input' => array( |
|
| 879 | + ), |
|
| 880 | + '#eval input' => array( |
|
| 881 | 881 | 'token_rules_input_evaluator' => array( |
| 882 | - 'code' => array( |
|
| 882 | + 'code' => array( |
|
| 883 | 883 | '0' => ':global', |
| 884 | - ), |
|
| 884 | + ), |
|
| 885 | + ), |
|
| 885 | 886 | ), |
| 886 | - ), |
|
| 887 | 887 | ), |
| 888 | - ), |
|
| 888 | + ), |
|
| 889 | 889 | ), |
| 890 | 890 | '#actions' => array( |
| 891 | - '0' => array( |
|
| 891 | + '0' => array( |
|
| 892 | 892 | '#info' => array( |
| 893 | - 'label' => 'Notify moderators via email', |
|
| 894 | - 'module' => 'BOINC core', |
|
| 895 | - 'eval input' => array( |
|
| 893 | + 'label' => 'Notify moderators via email', |
|
| 894 | + 'module' => 'BOINC core', |
|
| 895 | + 'eval input' => array( |
|
| 896 | 896 | '0' => 'subject', |
| 897 | 897 | '1' => 'message', |
| 898 | 898 | '2' => 'from', |
| 899 | - ), |
|
| 899 | + ), |
|
| 900 | 900 | ), |
| 901 | 901 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 902 | 902 | '#settings' => array( |
| 903 | - 'from' => '', |
|
| 904 | - 'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin', |
|
| 905 | - 'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 906 | - '#eval input' => array( |
|
| 903 | + 'from' => '', |
|
| 904 | + 'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin', |
|
| 905 | + 'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 906 | + '#eval input' => array( |
|
| 907 | 907 | 'token_rules_input_evaluator' => array( |
| 908 | - 'subject' => array( |
|
| 908 | + 'subject' => array( |
|
| 909 | 909 | '0' => ':global', |
| 910 | - ), |
|
| 911 | - 'message' => array( |
|
| 910 | + ), |
|
| 911 | + 'message' => array( |
|
| 912 | 912 | '0' => 'node', |
| 913 | 913 | '1' => 'user', |
| 914 | 914 | '2' => ':global', |
| 915 | - ), |
|
| 916 | - 'from' => array( |
|
| 915 | + ), |
|
| 916 | + 'from' => array( |
|
| 917 | 917 | '0' => ':global', |
| 918 | - ), |
|
| 918 | + ), |
|
| 919 | + ), |
|
| 919 | 920 | ), |
| 920 | - ), |
|
| 921 | 921 | ), |
| 922 | 922 | '#type' => 'action', |
| 923 | 923 | '#weight' => 0, |
| 924 | - ), |
|
| 924 | + ), |
|
| 925 | 925 | ), |
| 926 | 926 | '#version' => 6003, |
| 927 | - ), |
|
| 928 | - 'rules_forum_topic_is_hidden_by_moderator_admin' => array( |
|
| 927 | + ), |
|
| 928 | + 'rules_forum_topic_is_hidden_by_moderator_admin' => array( |
|
| 929 | 929 | '#type' => 'rule', |
| 930 | 930 | '#set' => 'event_node_update', |
| 931 | 931 | '#label' => 'Forum topic is hidden by moderator/admin', |
| 932 | 932 | '#active' => 1, |
| 933 | 933 | '#weight' => '0', |
| 934 | 934 | '#categories' => array( |
| 935 | - '0' => 'boinc_standard', |
|
| 936 | - '1' => 'moderator notification', |
|
| 935 | + '0' => 'boinc_standard', |
|
| 936 | + '1' => 'moderator notification', |
|
| 937 | 937 | ), |
| 938 | 938 | '#status' => 'default', |
| 939 | 939 | '#conditions' => array( |
| 940 | - '0' => array( |
|
| 940 | + '0' => array( |
|
| 941 | 941 | '#type' => 'condition', |
| 942 | 942 | '#settings' => array( |
| 943 | - 'roles' => array( |
|
| 943 | + 'roles' => array( |
|
| 944 | 944 | '0' => 3519698132, |
| 945 | 945 | '1' => 1271379760, |
| 946 | - ), |
|
| 947 | - 'operation' => 'OR', |
|
| 948 | - '#argument map' => array( |
|
| 946 | + ), |
|
| 947 | + 'operation' => 'OR', |
|
| 948 | + '#argument map' => array( |
|
| 949 | 949 | 'user' => 'user', |
| 950 | - ), |
|
| 950 | + ), |
|
| 951 | 951 | ), |
| 952 | 952 | '#name' => 'rules_condition_user_hasrole', |
| 953 | 953 | '#info' => array( |
| 954 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 955 | - 'label callback' => FALSE, |
|
| 956 | - 'arguments' => array( |
|
| 954 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 955 | + 'label callback' => FALSE, |
|
| 956 | + 'arguments' => array( |
|
| 957 | 957 | 'user' => array( |
| 958 | - 'type' => 'user', |
|
| 959 | - 'label' => 'User', |
|
| 958 | + 'type' => 'user', |
|
| 959 | + 'label' => 'User', |
|
| 960 | 960 | ), |
| 961 | - ), |
|
| 962 | - 'module' => 'User', |
|
| 961 | + ), |
|
| 962 | + 'module' => 'User', |
|
| 963 | 963 | ), |
| 964 | 964 | '#weight' => 0, |
| 965 | - ), |
|
| 966 | - '1' => array( |
|
| 965 | + ), |
|
| 966 | + '1' => array( |
|
| 967 | 967 | '#weight' => 0, |
| 968 | 968 | '0' => array( |
| 969 | - '#weight' => 0, |
|
| 970 | - '#type' => 'condition', |
|
| 971 | - '#settings' => array( |
|
| 969 | + '#weight' => 0, |
|
| 970 | + '#type' => 'condition', |
|
| 971 | + '#settings' => array( |
|
| 972 | 972 | 'type' => array( |
| 973 | - 'forum' => 'forum', |
|
| 973 | + 'forum' => 'forum', |
|
| 974 | 974 | ), |
| 975 | 975 | '#argument map' => array( |
| 976 | - 'node' => 'node', |
|
| 976 | + 'node' => 'node', |
|
| 977 | 977 | ), |
| 978 | - ), |
|
| 979 | - '#name' => 'rules_condition_content_is_type', |
|
| 980 | - '#info' => array( |
|
| 978 | + ), |
|
| 979 | + '#name' => 'rules_condition_content_is_type', |
|
| 980 | + '#info' => array( |
|
| 981 | 981 | 'label' => 'Updated content is Forum topic', |
| 982 | 982 | 'arguments' => array( |
| 983 | - 'node' => array( |
|
| 983 | + 'node' => array( |
|
| 984 | 984 | 'type' => 'node', |
| 985 | 985 | 'label' => 'Content', |
| 986 | - ), |
|
| 986 | + ), |
|
| 987 | 987 | ), |
| 988 | 988 | 'module' => 'Node', |
| 989 | - ), |
|
| 989 | + ), |
|
| 990 | 990 | ), |
| 991 | 991 | '#type' => 'OR', |
| 992 | 992 | '1' => array( |
| 993 | - '#type' => 'condition', |
|
| 994 | - '#settings' => array( |
|
| 993 | + '#type' => 'condition', |
|
| 994 | + '#settings' => array( |
|
| 995 | 995 | 'type' => array( |
| 996 | - 'team_forum' => 'team_forum', |
|
| 996 | + 'team_forum' => 'team_forum', |
|
| 997 | 997 | ), |
| 998 | 998 | '#argument map' => array( |
| 999 | - 'node' => 'node', |
|
| 999 | + 'node' => 'node', |
|
| 1000 | 1000 | ), |
| 1001 | - ), |
|
| 1002 | - '#name' => 'rules_condition_content_is_type', |
|
| 1003 | - '#info' => array( |
|
| 1001 | + ), |
|
| 1002 | + '#name' => 'rules_condition_content_is_type', |
|
| 1003 | + '#info' => array( |
|
| 1004 | 1004 | 'label' => 'Updated content is Team forum topic', |
| 1005 | 1005 | 'arguments' => array( |
| 1006 | - 'node' => array( |
|
| 1006 | + 'node' => array( |
|
| 1007 | 1007 | 'type' => 'node', |
| 1008 | 1008 | 'label' => 'Content', |
| 1009 | - ), |
|
| 1009 | + ), |
|
| 1010 | 1010 | ), |
| 1011 | 1011 | 'module' => 'Node', |
| 1012 | - ), |
|
| 1013 | - '#weight' => 0, |
|
| 1012 | + ), |
|
| 1013 | + '#weight' => 0, |
|
| 1014 | 1014 | ), |
| 1015 | - ), |
|
| 1016 | - '3' => array( |
|
| 1015 | + ), |
|
| 1016 | + '3' => array( |
|
| 1017 | 1017 | '#weight' => 0, |
| 1018 | 1018 | '#info' => array( |
| 1019 | - 'label' => 'PHP code: node content unchanged', |
|
| 1020 | - 'label callback' => FALSE, |
|
| 1021 | - 'module' => 'PHP', |
|
| 1022 | - 'eval input' => array( |
|
| 1019 | + 'label' => 'PHP code: node content unchanged', |
|
| 1020 | + 'label callback' => FALSE, |
|
| 1021 | + 'module' => 'PHP', |
|
| 1022 | + 'eval input' => array( |
|
| 1023 | 1023 | '0' => 'code', |
| 1024 | - ), |
|
| 1024 | + ), |
|
| 1025 | 1025 | ), |
| 1026 | 1026 | '#name' => 'rules_condition_custom_php', |
| 1027 | 1027 | '#settings' => array( |
| 1028 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 1029 | - 'vars' => array( |
|
| 1028 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 1029 | + 'vars' => array( |
|
| 1030 | 1030 | '0' => 'node', |
| 1031 | 1031 | '1' => 'node_unchanged', |
| 1032 | - ), |
|
| 1033 | - '#eval input' => array( |
|
| 1032 | + ), |
|
| 1033 | + '#eval input' => array( |
|
| 1034 | 1034 | 'token_rules_input_evaluator' => array( |
| 1035 | - 'code' => array( |
|
| 1035 | + 'code' => array( |
|
| 1036 | 1036 | '0' => ':global', |
| 1037 | - ), |
|
| 1037 | + ), |
|
| 1038 | + ), |
|
| 1038 | 1039 | ), |
| 1039 | - ), |
|
| 1040 | 1040 | ), |
| 1041 | 1041 | '#type' => 'condition', |
| 1042 | - ), |
|
| 1043 | - '4' => array( |
|
| 1042 | + ), |
|
| 1043 | + '4' => array( |
|
| 1044 | 1044 | '#weight' => 0, |
| 1045 | 1045 | '#info' => array( |
| 1046 | - 'label' => 'PHP code: node status changed to hidden', |
|
| 1047 | - 'label callback' => FALSE, |
|
| 1048 | - 'module' => 'PHP', |
|
| 1049 | - 'eval input' => array( |
|
| 1046 | + 'label' => 'PHP code: node status changed to hidden', |
|
| 1047 | + 'label callback' => FALSE, |
|
| 1048 | + 'module' => 'PHP', |
|
| 1049 | + 'eval input' => array( |
|
| 1050 | 1050 | '0' => 'code', |
| 1051 | - ), |
|
| 1051 | + ), |
|
| 1052 | 1052 | ), |
| 1053 | 1053 | '#name' => 'rules_condition_custom_php', |
| 1054 | 1054 | '#type' => 'condition', |
| 1055 | 1055 | '#settings' => array( |
| 1056 | - 'code' => 'return $node_unchanged->status == 1 && $node->status == 0;', |
|
| 1057 | - 'vars' => array( |
|
| 1056 | + 'code' => 'return $node_unchanged->status == 1 && $node->status == 0;', |
|
| 1057 | + 'vars' => array( |
|
| 1058 | 1058 | '0' => 'node', |
| 1059 | 1059 | '1' => 'node_unchanged', |
| 1060 | - ), |
|
| 1061 | - '#eval input' => array( |
|
| 1060 | + ), |
|
| 1061 | + '#eval input' => array( |
|
| 1062 | 1062 | 'token_rules_input_evaluator' => array( |
| 1063 | - 'code' => array( |
|
| 1063 | + 'code' => array( |
|
| 1064 | 1064 | '0' => ':global', |
| 1065 | - ), |
|
| 1065 | + ), |
|
| 1066 | 1066 | ), |
| 1067 | - ), |
|
| 1067 | + ), |
|
| 1068 | + ), |
|
| 1068 | 1069 | ), |
| 1069 | - ), |
|
| 1070 | 1070 | ), |
| 1071 | 1071 | '#actions' => array( |
| 1072 | - '0' => array( |
|
| 1072 | + '0' => array( |
|
| 1073 | 1073 | '#info' => array( |
| 1074 | - 'label' => 'Notify moderators via email', |
|
| 1075 | - 'module' => 'BOINC core', |
|
| 1076 | - 'eval input' => array( |
|
| 1074 | + 'label' => 'Notify moderators via email', |
|
| 1075 | + 'module' => 'BOINC core', |
|
| 1076 | + 'eval input' => array( |
|
| 1077 | 1077 | '0' => 'subject', |
| 1078 | 1078 | '1' => 'message', |
| 1079 | 1079 | '2' => 'from', |
| 1080 | - ), |
|
| 1080 | + ), |
|
| 1081 | 1081 | ), |
| 1082 | 1082 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1083 | 1083 | '#settings' => array( |
| 1084 | - 'from' => '', |
|
| 1085 | - 'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin', |
|
| 1086 | - 'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1087 | - '#eval input' => array( |
|
| 1084 | + 'from' => '', |
|
| 1085 | + 'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin', |
|
| 1086 | + 'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1087 | + '#eval input' => array( |
|
| 1088 | 1088 | 'token_rules_input_evaluator' => array( |
| 1089 | - 'subject' => array( |
|
| 1089 | + 'subject' => array( |
|
| 1090 | 1090 | '0' => ':global', |
| 1091 | - ), |
|
| 1092 | - 'message' => array( |
|
| 1091 | + ), |
|
| 1092 | + 'message' => array( |
|
| 1093 | 1093 | '0' => 'node', |
| 1094 | 1094 | '1' => 'user', |
| 1095 | 1095 | '2' => ':global', |
| 1096 | - ), |
|
| 1097 | - 'from' => array( |
|
| 1096 | + ), |
|
| 1097 | + 'from' => array( |
|
| 1098 | 1098 | '0' => ':global', |
| 1099 | - ), |
|
| 1099 | + ), |
|
| 1100 | + ), |
|
| 1100 | 1101 | ), |
| 1101 | - ), |
|
| 1102 | 1102 | ), |
| 1103 | 1103 | '#type' => 'action', |
| 1104 | 1104 | '#weight' => 0, |
| 1105 | - ), |
|
| 1105 | + ), |
|
| 1106 | 1106 | ), |
| 1107 | 1107 | '#version' => 6003, |
| 1108 | - ), |
|
| 1109 | - 'rules_forum_topic_is_unhidden_by_moderator_admin' => array( |
|
| 1108 | + ), |
|
| 1109 | + 'rules_forum_topic_is_unhidden_by_moderator_admin' => array( |
|
| 1110 | 1110 | '#type' => 'rule', |
| 1111 | 1111 | '#set' => 'event_node_update', |
| 1112 | 1112 | '#label' => 'Forum topic is unhidden by moderator/admin', |
| 1113 | 1113 | '#active' => 1, |
| 1114 | 1114 | '#weight' => '0', |
| 1115 | 1115 | '#categories' => array( |
| 1116 | - '0' => 'boinc_standard', |
|
| 1117 | - '1' => 'moderator notification', |
|
| 1116 | + '0' => 'boinc_standard', |
|
| 1117 | + '1' => 'moderator notification', |
|
| 1118 | 1118 | ), |
| 1119 | 1119 | '#status' => 'default', |
| 1120 | 1120 | '#conditions' => array( |
| 1121 | - '0' => array( |
|
| 1121 | + '0' => array( |
|
| 1122 | 1122 | '#type' => 'condition', |
| 1123 | 1123 | '#settings' => array( |
| 1124 | - 'roles' => array( |
|
| 1124 | + 'roles' => array( |
|
| 1125 | 1125 | '0' => 3519698132, |
| 1126 | 1126 | '1' => 1271379760, |
| 1127 | - ), |
|
| 1128 | - 'operation' => 'OR', |
|
| 1129 | - '#argument map' => array( |
|
| 1127 | + ), |
|
| 1128 | + 'operation' => 'OR', |
|
| 1129 | + '#argument map' => array( |
|
| 1130 | 1130 | 'user' => 'user', |
| 1131 | - ), |
|
| 1131 | + ), |
|
| 1132 | 1132 | ), |
| 1133 | 1133 | '#name' => 'rules_condition_user_hasrole', |
| 1134 | 1134 | '#info' => array( |
| 1135 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 1136 | - 'label callback' => FALSE, |
|
| 1137 | - 'arguments' => array( |
|
| 1135 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 1136 | + 'label callback' => FALSE, |
|
| 1137 | + 'arguments' => array( |
|
| 1138 | 1138 | 'user' => array( |
| 1139 | - 'type' => 'user', |
|
| 1140 | - 'label' => 'User', |
|
| 1139 | + 'type' => 'user', |
|
| 1140 | + 'label' => 'User', |
|
| 1141 | + ), |
|
| 1141 | 1142 | ), |
| 1142 | - ), |
|
| 1143 | - 'module' => 'User', |
|
| 1143 | + 'module' => 'User', |
|
| 1144 | 1144 | ), |
| 1145 | 1145 | '#weight' => 0, |
| 1146 | - ), |
|
| 1147 | - '1' => array( |
|
| 1146 | + ), |
|
| 1147 | + '1' => array( |
|
| 1148 | 1148 | '#type' => 'OR', |
| 1149 | 1149 | '0' => array( |
| 1150 | - '#info' => array( |
|
| 1150 | + '#info' => array( |
|
| 1151 | 1151 | 'label' => 'Updated content is Forum topic', |
| 1152 | 1152 | 'arguments' => array( |
| 1153 | - 'node' => array( |
|
| 1153 | + 'node' => array( |
|
| 1154 | 1154 | 'type' => 'node', |
| 1155 | 1155 | 'label' => 'Content', |
| 1156 | - ), |
|
| 1156 | + ), |
|
| 1157 | 1157 | ), |
| 1158 | 1158 | 'module' => 'Node', |
| 1159 | - ), |
|
| 1160 | - '#name' => 'rules_condition_content_is_type', |
|
| 1161 | - '#settings' => array( |
|
| 1159 | + ), |
|
| 1160 | + '#name' => 'rules_condition_content_is_type', |
|
| 1161 | + '#settings' => array( |
|
| 1162 | 1162 | 'type' => array( |
| 1163 | - 'forum' => 'forum', |
|
| 1163 | + 'forum' => 'forum', |
|
| 1164 | 1164 | ), |
| 1165 | 1165 | '#argument map' => array( |
| 1166 | - 'node' => 'node', |
|
| 1166 | + 'node' => 'node', |
|
| 1167 | 1167 | ), |
| 1168 | - ), |
|
| 1169 | - '#type' => 'condition', |
|
| 1170 | - '#weight' => 0, |
|
| 1168 | + ), |
|
| 1169 | + '#type' => 'condition', |
|
| 1170 | + '#weight' => 0, |
|
| 1171 | 1171 | ), |
| 1172 | 1172 | '#weight' => 0, |
| 1173 | 1173 | '1' => array( |
| 1174 | - '#weight' => 0, |
|
| 1175 | - '#info' => array( |
|
| 1174 | + '#weight' => 0, |
|
| 1175 | + '#info' => array( |
|
| 1176 | 1176 | 'label' => 'Updated content is Team forum topic', |
| 1177 | 1177 | 'arguments' => array( |
| 1178 | - 'node' => array( |
|
| 1178 | + 'node' => array( |
|
| 1179 | 1179 | 'type' => 'node', |
| 1180 | 1180 | 'label' => 'Content', |
| 1181 | - ), |
|
| 1181 | + ), |
|
| 1182 | 1182 | ), |
| 1183 | 1183 | 'module' => 'Node', |
| 1184 | - ), |
|
| 1185 | - '#name' => 'rules_condition_content_is_type', |
|
| 1186 | - '#settings' => array( |
|
| 1184 | + ), |
|
| 1185 | + '#name' => 'rules_condition_content_is_type', |
|
| 1186 | + '#settings' => array( |
|
| 1187 | 1187 | 'type' => array( |
| 1188 | - 'team_forum' => 'team_forum', |
|
| 1188 | + 'team_forum' => 'team_forum', |
|
| 1189 | 1189 | ), |
| 1190 | 1190 | '#argument map' => array( |
| 1191 | - 'node' => 'node', |
|
| 1191 | + 'node' => 'node', |
|
| 1192 | 1192 | ), |
| 1193 | - ), |
|
| 1194 | - '#type' => 'condition', |
|
| 1193 | + ), |
|
| 1194 | + '#type' => 'condition', |
|
| 1195 | + ), |
|
| 1195 | 1196 | ), |
| 1196 | - ), |
|
| 1197 | - '3' => array( |
|
| 1197 | + '3' => array( |
|
| 1198 | 1198 | '#type' => 'condition', |
| 1199 | 1199 | '#settings' => array( |
| 1200 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 1201 | - 'vars' => array( |
|
| 1200 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 1201 | + 'vars' => array( |
|
| 1202 | 1202 | '0' => 'node', |
| 1203 | 1203 | '1' => 'node_unchanged', |
| 1204 | - ), |
|
| 1205 | - '#eval input' => array( |
|
| 1204 | + ), |
|
| 1205 | + '#eval input' => array( |
|
| 1206 | 1206 | 'token_rules_input_evaluator' => array( |
| 1207 | - 'code' => array( |
|
| 1207 | + 'code' => array( |
|
| 1208 | 1208 | '0' => ':global', |
| 1209 | - ), |
|
| 1209 | + ), |
|
| 1210 | + ), |
|
| 1210 | 1211 | ), |
| 1211 | - ), |
|
| 1212 | 1212 | ), |
| 1213 | 1213 | '#name' => 'rules_condition_custom_php', |
| 1214 | 1214 | '#info' => array( |
| 1215 | - 'label' => 'PHP code: node content is unchanged', |
|
| 1216 | - 'label callback' => FALSE, |
|
| 1217 | - 'module' => 'PHP', |
|
| 1218 | - 'eval input' => array( |
|
| 1215 | + 'label' => 'PHP code: node content is unchanged', |
|
| 1216 | + 'label callback' => FALSE, |
|
| 1217 | + 'module' => 'PHP', |
|
| 1218 | + 'eval input' => array( |
|
| 1219 | 1219 | '0' => 'code', |
| 1220 | - ), |
|
| 1220 | + ), |
|
| 1221 | 1221 | ), |
| 1222 | 1222 | '#weight' => 0, |
| 1223 | - ), |
|
| 1224 | - '4' => array( |
|
| 1223 | + ), |
|
| 1224 | + '4' => array( |
|
| 1225 | 1225 | '#type' => 'condition', |
| 1226 | 1226 | '#settings' => array( |
| 1227 | - 'code' => 'return $node_unchanged->status == 0 && $node->status == 1;', |
|
| 1228 | - 'vars' => array( |
|
| 1227 | + 'code' => 'return $node_unchanged->status == 0 && $node->status == 1;', |
|
| 1228 | + 'vars' => array( |
|
| 1229 | 1229 | '0' => 'node', |
| 1230 | 1230 | '1' => 'node_unchanged', |
| 1231 | - ), |
|
| 1232 | - '#eval input' => array( |
|
| 1231 | + ), |
|
| 1232 | + '#eval input' => array( |
|
| 1233 | 1233 | 'token_rules_input_evaluator' => array( |
| 1234 | - 'code' => array( |
|
| 1234 | + 'code' => array( |
|
| 1235 | 1235 | '0' => ':global', |
| 1236 | - ), |
|
| 1236 | + ), |
|
| 1237 | + ), |
|
| 1237 | 1238 | ), |
| 1238 | - ), |
|
| 1239 | 1239 | ), |
| 1240 | 1240 | '#name' => 'rules_condition_custom_php', |
| 1241 | 1241 | '#info' => array( |
| 1242 | - 'label' => 'PHP code: node status changed to unhidden', |
|
| 1243 | - 'label callback' => FALSE, |
|
| 1244 | - 'module' => 'PHP', |
|
| 1245 | - 'eval input' => array( |
|
| 1242 | + 'label' => 'PHP code: node status changed to unhidden', |
|
| 1243 | + 'label callback' => FALSE, |
|
| 1244 | + 'module' => 'PHP', |
|
| 1245 | + 'eval input' => array( |
|
| 1246 | 1246 | '0' => 'code', |
| 1247 | - ), |
|
| 1247 | + ), |
|
| 1248 | 1248 | ), |
| 1249 | 1249 | '#weight' => 0, |
| 1250 | - ), |
|
| 1250 | + ), |
|
| 1251 | 1251 | ), |
| 1252 | 1252 | '#actions' => array( |
| 1253 | - '0' => array( |
|
| 1253 | + '0' => array( |
|
| 1254 | 1254 | '#weight' => 0, |
| 1255 | 1255 | '#info' => array( |
| 1256 | - 'label' => 'Notify moderators via email', |
|
| 1257 | - 'module' => 'BOINC core', |
|
| 1258 | - 'eval input' => array( |
|
| 1256 | + 'label' => 'Notify moderators via email', |
|
| 1257 | + 'module' => 'BOINC core', |
|
| 1258 | + 'eval input' => array( |
|
| 1259 | 1259 | '0' => 'subject', |
| 1260 | 1260 | '1' => 'message', |
| 1261 | 1261 | '2' => 'from', |
| 1262 | - ), |
|
| 1262 | + ), |
|
| 1263 | 1263 | ), |
| 1264 | 1264 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1265 | 1265 | '#settings' => array( |
| 1266 | - 'from' => '', |
|
| 1267 | - 'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin', |
|
| 1268 | - 'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1269 | - '#eval input' => array( |
|
| 1266 | + 'from' => '', |
|
| 1267 | + 'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin', |
|
| 1268 | + 'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1269 | + '#eval input' => array( |
|
| 1270 | 1270 | 'token_rules_input_evaluator' => array( |
| 1271 | - 'subject' => array( |
|
| 1271 | + 'subject' => array( |
|
| 1272 | 1272 | '0' => ':global', |
| 1273 | - ), |
|
| 1274 | - 'message' => array( |
|
| 1273 | + ), |
|
| 1274 | + 'message' => array( |
|
| 1275 | 1275 | '0' => 'node', |
| 1276 | 1276 | '1' => 'user', |
| 1277 | 1277 | '2' => ':global', |
| 1278 | - ), |
|
| 1279 | - 'from' => array( |
|
| 1278 | + ), |
|
| 1279 | + 'from' => array( |
|
| 1280 | 1280 | '0' => ':global', |
| 1281 | - ), |
|
| 1281 | + ), |
|
| 1282 | + ), |
|
| 1282 | 1283 | ), |
| 1283 | - ), |
|
| 1284 | 1284 | ), |
| 1285 | 1285 | '#type' => 'action', |
| 1286 | - ), |
|
| 1286 | + ), |
|
| 1287 | 1287 | ), |
| 1288 | 1288 | '#version' => 6003, |
| 1289 | - ), |
|
| 1290 | - 'rules_forum_topic_is_edited_by_moderator_or_admin' => array( |
|
| 1289 | + ), |
|
| 1290 | + 'rules_forum_topic_is_edited_by_moderator_or_admin' => array( |
|
| 1291 | 1291 | '#type' => 'rule', |
| 1292 | 1292 | '#set' => 'event_node_update', |
| 1293 | 1293 | '#label' => 'Forum topic is edited by moderator or admin', |
| 1294 | 1294 | '#active' => 1, |
| 1295 | 1295 | '#weight' => '0', |
| 1296 | 1296 | '#categories' => array( |
| 1297 | - '0' => 'boinc_standard', |
|
| 1298 | - '1' => 'moderator notification', |
|
| 1297 | + '0' => 'boinc_standard', |
|
| 1298 | + '1' => 'moderator notification', |
|
| 1299 | 1299 | ), |
| 1300 | 1300 | '#status' => 'default', |
| 1301 | 1301 | '#conditions' => array( |
| 1302 | - '0' => array( |
|
| 1302 | + '0' => array( |
|
| 1303 | 1303 | '#weight' => 0, |
| 1304 | 1304 | '#type' => 'condition', |
| 1305 | 1305 | '#settings' => array( |
| 1306 | - 'roles' => array( |
|
| 1306 | + 'roles' => array( |
|
| 1307 | 1307 | '0' => 3519698132, |
| 1308 | 1308 | '1' => 1271379760, |
| 1309 | - ), |
|
| 1310 | - 'operation' => 'OR', |
|
| 1311 | - '#argument map' => array( |
|
| 1309 | + ), |
|
| 1310 | + 'operation' => 'OR', |
|
| 1311 | + '#argument map' => array( |
|
| 1312 | 1312 | 'user' => 'user', |
| 1313 | - ), |
|
| 1313 | + ), |
|
| 1314 | 1314 | ), |
| 1315 | 1315 | '#name' => 'rules_condition_user_hasrole', |
| 1316 | 1316 | '#info' => array( |
| 1317 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 1318 | - 'label callback' => FALSE, |
|
| 1319 | - 'arguments' => array( |
|
| 1317 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 1318 | + 'label callback' => FALSE, |
|
| 1319 | + 'arguments' => array( |
|
| 1320 | 1320 | 'user' => array( |
| 1321 | - 'type' => 'user', |
|
| 1322 | - 'label' => 'User', |
|
| 1321 | + 'type' => 'user', |
|
| 1322 | + 'label' => 'User', |
|
| 1323 | 1323 | ), |
| 1324 | - ), |
|
| 1325 | - 'module' => 'User', |
|
| 1324 | + ), |
|
| 1325 | + 'module' => 'User', |
|
| 1326 | + ), |
|
| 1326 | 1327 | ), |
| 1327 | - ), |
|
| 1328 | - '1' => array( |
|
| 1328 | + '1' => array( |
|
| 1329 | 1329 | '#weight' => 0, |
| 1330 | 1330 | '0' => array( |
| 1331 | - '#weight' => 0, |
|
| 1332 | - '#info' => array( |
|
| 1331 | + '#weight' => 0, |
|
| 1332 | + '#info' => array( |
|
| 1333 | 1333 | 'label' => 'Updated content is Forum topic', |
| 1334 | 1334 | 'arguments' => array( |
| 1335 | - 'node' => array( |
|
| 1335 | + 'node' => array( |
|
| 1336 | 1336 | 'type' => 'node', |
| 1337 | 1337 | 'label' => 'Content', |
| 1338 | - ), |
|
| 1338 | + ), |
|
| 1339 | 1339 | ), |
| 1340 | 1340 | 'module' => 'Node', |
| 1341 | - ), |
|
| 1342 | - '#name' => 'rules_condition_content_is_type', |
|
| 1343 | - '#settings' => array( |
|
| 1341 | + ), |
|
| 1342 | + '#name' => 'rules_condition_content_is_type', |
|
| 1343 | + '#settings' => array( |
|
| 1344 | 1344 | 'type' => array( |
| 1345 | - 'forum' => 'forum', |
|
| 1345 | + 'forum' => 'forum', |
|
| 1346 | 1346 | ), |
| 1347 | 1347 | '#argument map' => array( |
| 1348 | - 'node' => 'node', |
|
| 1348 | + 'node' => 'node', |
|
| 1349 | + ), |
|
| 1349 | 1350 | ), |
| 1350 | - ), |
|
| 1351 | - '#type' => 'condition', |
|
| 1351 | + '#type' => 'condition', |
|
| 1352 | 1352 | ), |
| 1353 | 1353 | '#type' => 'OR', |
| 1354 | 1354 | '1' => array( |
| 1355 | - '#type' => 'condition', |
|
| 1356 | - '#settings' => array( |
|
| 1355 | + '#type' => 'condition', |
|
| 1356 | + '#settings' => array( |
|
| 1357 | 1357 | 'type' => array( |
| 1358 | - 'team_forum' => 'team_forum', |
|
| 1358 | + 'team_forum' => 'team_forum', |
|
| 1359 | 1359 | ), |
| 1360 | 1360 | '#argument map' => array( |
| 1361 | - 'node' => 'node', |
|
| 1361 | + 'node' => 'node', |
|
| 1362 | 1362 | ), |
| 1363 | - ), |
|
| 1364 | - '#name' => 'rules_condition_content_is_type', |
|
| 1365 | - '#info' => array( |
|
| 1363 | + ), |
|
| 1364 | + '#name' => 'rules_condition_content_is_type', |
|
| 1365 | + '#info' => array( |
|
| 1366 | 1366 | 'label' => 'Updated content is Team forum topic', |
| 1367 | 1367 | 'arguments' => array( |
| 1368 | - 'node' => array( |
|
| 1368 | + 'node' => array( |
|
| 1369 | 1369 | 'type' => 'node', |
| 1370 | 1370 | 'label' => 'Content', |
| 1371 | - ), |
|
| 1371 | + ), |
|
| 1372 | 1372 | ), |
| 1373 | 1373 | 'module' => 'Node', |
| 1374 | - ), |
|
| 1375 | - '#weight' => 0, |
|
| 1374 | + ), |
|
| 1375 | + '#weight' => 0, |
|
| 1376 | 1376 | ), |
| 1377 | - ), |
|
| 1378 | - '2' => array( |
|
| 1377 | + ), |
|
| 1378 | + '2' => array( |
|
| 1379 | 1379 | '#weight' => 0, |
| 1380 | 1380 | '#info' => array( |
| 1381 | - 'label' => 'PHP code: content changed', |
|
| 1382 | - 'label callback' => FALSE, |
|
| 1383 | - 'module' => 'PHP', |
|
| 1384 | - 'eval input' => array( |
|
| 1381 | + 'label' => 'PHP code: content changed', |
|
| 1382 | + 'label callback' => FALSE, |
|
| 1383 | + 'module' => 'PHP', |
|
| 1384 | + 'eval input' => array( |
|
| 1385 | 1385 | '0' => 'code', |
| 1386 | - ), |
|
| 1386 | + ), |
|
| 1387 | 1387 | ), |
| 1388 | 1388 | '#name' => 'rules_condition_custom_php', |
| 1389 | 1389 | '#settings' => array( |
| 1390 | - 'code' => 'return ($node->body != $node_unchanged->body);', |
|
| 1391 | - 'vars' => array( |
|
| 1390 | + 'code' => 'return ($node->body != $node_unchanged->body);', |
|
| 1391 | + 'vars' => array( |
|
| 1392 | 1392 | '0' => 'node', |
| 1393 | 1393 | '1' => 'node_unchanged', |
| 1394 | - ), |
|
| 1395 | - '#eval input' => array( |
|
| 1394 | + ), |
|
| 1395 | + '#eval input' => array( |
|
| 1396 | 1396 | 'token_rules_input_evaluator' => array( |
| 1397 | - 'code' => array( |
|
| 1397 | + 'code' => array( |
|
| 1398 | 1398 | '0' => ':global', |
| 1399 | - ), |
|
| 1399 | + ), |
|
| 1400 | + ), |
|
| 1400 | 1401 | ), |
| 1401 | - ), |
|
| 1402 | 1402 | ), |
| 1403 | 1403 | '#type' => 'condition', |
| 1404 | - ), |
|
| 1404 | + ), |
|
| 1405 | 1405 | ), |
| 1406 | 1406 | '#actions' => array( |
| 1407 | - '0' => array( |
|
| 1407 | + '0' => array( |
|
| 1408 | 1408 | '#weight' => 0, |
| 1409 | 1409 | '#type' => 'action', |
| 1410 | 1410 | '#settings' => array( |
| 1411 | - 'from' => '', |
|
| 1412 | - 'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin', |
|
| 1413 | - 'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1414 | - '#eval input' => array( |
|
| 1411 | + 'from' => '', |
|
| 1412 | + 'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin', |
|
| 1413 | + 'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1414 | + '#eval input' => array( |
|
| 1415 | 1415 | 'token_rules_input_evaluator' => array( |
| 1416 | - 'subject' => array( |
|
| 1416 | + 'subject' => array( |
|
| 1417 | 1417 | '0' => ':global', |
| 1418 | - ), |
|
| 1419 | - 'message' => array( |
|
| 1418 | + ), |
|
| 1419 | + 'message' => array( |
|
| 1420 | 1420 | '0' => 'node', |
| 1421 | 1421 | '1' => 'user', |
| 1422 | 1422 | '2' => ':global', |
| 1423 | - ), |
|
| 1424 | - 'from' => array( |
|
| 1423 | + ), |
|
| 1424 | + 'from' => array( |
|
| 1425 | 1425 | '0' => ':global', |
| 1426 | - ), |
|
| 1426 | + ), |
|
| 1427 | + ), |
|
| 1427 | 1428 | ), |
| 1428 | - ), |
|
| 1429 | 1429 | ), |
| 1430 | 1430 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1431 | 1431 | '#info' => array( |
| 1432 | - 'label' => 'Notify moderators via email', |
|
| 1433 | - 'module' => 'BOINC core', |
|
| 1434 | - 'eval input' => array( |
|
| 1432 | + 'label' => 'Notify moderators via email', |
|
| 1433 | + 'module' => 'BOINC core', |
|
| 1434 | + 'eval input' => array( |
|
| 1435 | 1435 | '0' => 'subject', |
| 1436 | 1436 | '1' => 'message', |
| 1437 | 1437 | '2' => 'from', |
| 1438 | - ), |
|
| 1438 | + ), |
|
| 1439 | + ), |
|
| 1439 | 1440 | ), |
| 1440 | - ), |
|
| 1441 | 1441 | ), |
| 1442 | 1442 | '#version' => 6003, |
| 1443 | - ), |
|
| 1444 | - 'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array( |
|
| 1443 | + ), |
|
| 1444 | + 'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array( |
|
| 1445 | 1445 | '#type' => 'rule', |
| 1446 | 1446 | '#set' => 'event_node_update', |
| 1447 | 1447 | '#label' => 'Forum topic is moved to a different forum by moderator or admin', |
| 1448 | 1448 | '#active' => 1, |
| 1449 | 1449 | '#weight' => '0', |
| 1450 | 1450 | '#categories' => array( |
| 1451 | - '0' => 'boinc_standard', |
|
| 1452 | - '1' => 'moderator notification', |
|
| 1451 | + '0' => 'boinc_standard', |
|
| 1452 | + '1' => 'moderator notification', |
|
| 1453 | 1453 | ), |
| 1454 | 1454 | '#status' => 'default', |
| 1455 | 1455 | '#conditions' => array( |
| 1456 | - '0' => array( |
|
| 1456 | + '0' => array( |
|
| 1457 | 1457 | '#weight' => 0, |
| 1458 | 1458 | '#type' => 'condition', |
| 1459 | 1459 | '#settings' => array( |
| 1460 | - 'roles' => array( |
|
| 1460 | + 'roles' => array( |
|
| 1461 | 1461 | '0' => 3519698132, |
| 1462 | 1462 | '1' => 1271379760, |
| 1463 | - ), |
|
| 1464 | - 'operation' => 'OR', |
|
| 1465 | - '#argument map' => array( |
|
| 1463 | + ), |
|
| 1464 | + 'operation' => 'OR', |
|
| 1465 | + '#argument map' => array( |
|
| 1466 | 1466 | 'user' => 'user', |
| 1467 | - ), |
|
| 1467 | + ), |
|
| 1468 | 1468 | ), |
| 1469 | 1469 | '#name' => 'rules_condition_user_hasrole', |
| 1470 | 1470 | '#info' => array( |
| 1471 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 1472 | - 'label callback' => FALSE, |
|
| 1473 | - 'arguments' => array( |
|
| 1471 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 1472 | + 'label callback' => FALSE, |
|
| 1473 | + 'arguments' => array( |
|
| 1474 | 1474 | 'user' => array( |
| 1475 | - 'type' => 'user', |
|
| 1476 | - 'label' => 'User', |
|
| 1475 | + 'type' => 'user', |
|
| 1476 | + 'label' => 'User', |
|
| 1477 | + ), |
|
| 1477 | 1478 | ), |
| 1478 | - ), |
|
| 1479 | - 'module' => 'User', |
|
| 1479 | + 'module' => 'User', |
|
| 1480 | 1480 | ), |
| 1481 | - ), |
|
| 1482 | - '1' => array( |
|
| 1481 | + ), |
|
| 1482 | + '1' => array( |
|
| 1483 | 1483 | '#weight' => 0, |
| 1484 | 1484 | '0' => array( |
| 1485 | - '#weight' => 0, |
|
| 1486 | - '#info' => array( |
|
| 1485 | + '#weight' => 0, |
|
| 1486 | + '#info' => array( |
|
| 1487 | 1487 | 'label' => 'Updated content is Forum topic', |
| 1488 | 1488 | 'arguments' => array( |
| 1489 | - 'node' => array( |
|
| 1489 | + 'node' => array( |
|
| 1490 | 1490 | 'type' => 'node', |
| 1491 | 1491 | 'label' => 'Content', |
| 1492 | - ), |
|
| 1492 | + ), |
|
| 1493 | 1493 | ), |
| 1494 | 1494 | 'module' => 'Node', |
| 1495 | - ), |
|
| 1496 | - '#name' => 'rules_condition_content_is_type', |
|
| 1497 | - '#settings' => array( |
|
| 1495 | + ), |
|
| 1496 | + '#name' => 'rules_condition_content_is_type', |
|
| 1497 | + '#settings' => array( |
|
| 1498 | 1498 | 'type' => array( |
| 1499 | - 'forum' => 'forum', |
|
| 1499 | + 'forum' => 'forum', |
|
| 1500 | 1500 | ), |
| 1501 | 1501 | '#argument map' => array( |
| 1502 | - 'node' => 'node', |
|
| 1502 | + 'node' => 'node', |
|
| 1503 | + ), |
|
| 1503 | 1504 | ), |
| 1504 | - ), |
|
| 1505 | - '#type' => 'condition', |
|
| 1505 | + '#type' => 'condition', |
|
| 1506 | 1506 | ), |
| 1507 | 1507 | '#type' => 'OR', |
| 1508 | 1508 | '1' => array( |
| 1509 | - '#type' => 'condition', |
|
| 1510 | - '#settings' => array( |
|
| 1509 | + '#type' => 'condition', |
|
| 1510 | + '#settings' => array( |
|
| 1511 | 1511 | 'type' => array( |
| 1512 | - 'team_forum' => 'team_forum', |
|
| 1512 | + 'team_forum' => 'team_forum', |
|
| 1513 | 1513 | ), |
| 1514 | 1514 | '#argument map' => array( |
| 1515 | - 'node' => 'node', |
|
| 1515 | + 'node' => 'node', |
|
| 1516 | 1516 | ), |
| 1517 | - ), |
|
| 1518 | - '#name' => 'rules_condition_content_is_type', |
|
| 1519 | - '#info' => array( |
|
| 1517 | + ), |
|
| 1518 | + '#name' => 'rules_condition_content_is_type', |
|
| 1519 | + '#info' => array( |
|
| 1520 | 1520 | 'label' => 'Updated content is Team forum topic', |
| 1521 | 1521 | 'arguments' => array( |
| 1522 | - 'node' => array( |
|
| 1522 | + 'node' => array( |
|
| 1523 | 1523 | 'type' => 'node', |
| 1524 | 1524 | 'label' => 'Content', |
| 1525 | - ), |
|
| 1525 | + ), |
|
| 1526 | 1526 | ), |
| 1527 | 1527 | 'module' => 'Node', |
| 1528 | - ), |
|
| 1529 | - '#weight' => 0, |
|
| 1528 | + ), |
|
| 1529 | + '#weight' => 0, |
|
| 1530 | 1530 | ), |
| 1531 | - ), |
|
| 1532 | - '2' => array( |
|
| 1531 | + ), |
|
| 1532 | + '2' => array( |
|
| 1533 | 1533 | '#weight' => 0, |
| 1534 | 1534 | '#info' => array( |
| 1535 | - 'label' => 'PHP code: node moved to new forum parent', |
|
| 1536 | - 'label callback' => FALSE, |
|
| 1537 | - 'module' => 'PHP', |
|
| 1538 | - 'eval input' => array( |
|
| 1535 | + 'label' => 'PHP code: node moved to new forum parent', |
|
| 1536 | + 'label callback' => FALSE, |
|
| 1537 | + 'module' => 'PHP', |
|
| 1538 | + 'eval input' => array( |
|
| 1539 | 1539 | '0' => 'code', |
| 1540 | - ), |
|
| 1540 | + ), |
|
| 1541 | 1541 | ), |
| 1542 | 1542 | '#name' => 'rules_condition_custom_php', |
| 1543 | 1543 | '#settings' => array( |
| 1544 | - 'code' => 'return ($node->tid != $node_unchanged->tid);', |
|
| 1545 | - 'vars' => array( |
|
| 1544 | + 'code' => 'return ($node->tid != $node_unchanged->tid);', |
|
| 1545 | + 'vars' => array( |
|
| 1546 | 1546 | '0' => 'node', |
| 1547 | 1547 | '1' => 'node_unchanged', |
| 1548 | - ), |
|
| 1549 | - '#eval input' => array( |
|
| 1548 | + ), |
|
| 1549 | + '#eval input' => array( |
|
| 1550 | 1550 | 'token_rules_input_evaluator' => array( |
| 1551 | - 'code' => array( |
|
| 1551 | + 'code' => array( |
|
| 1552 | 1552 | '0' => ':global', |
| 1553 | - ), |
|
| 1553 | + ), |
|
| 1554 | + ), |
|
| 1554 | 1555 | ), |
| 1555 | - ), |
|
| 1556 | 1556 | ), |
| 1557 | 1557 | '#type' => 'condition', |
| 1558 | - ), |
|
| 1558 | + ), |
|
| 1559 | 1559 | ), |
| 1560 | 1560 | '#actions' => array( |
| 1561 | - '0' => array( |
|
| 1561 | + '0' => array( |
|
| 1562 | 1562 | '#weight' => 0, |
| 1563 | 1563 | '#type' => 'action', |
| 1564 | 1564 | '#settings' => array( |
| 1565 | - 'from' => '', |
|
| 1566 | - 'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin', |
|
| 1567 | - 'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1568 | - '#eval input' => array( |
|
| 1565 | + 'from' => '', |
|
| 1566 | + 'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin', |
|
| 1567 | + 'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1568 | + '#eval input' => array( |
|
| 1569 | 1569 | 'token_rules_input_evaluator' => array( |
| 1570 | - 'subject' => array( |
|
| 1570 | + 'subject' => array( |
|
| 1571 | 1571 | '0' => ':global', |
| 1572 | - ), |
|
| 1573 | - 'message' => array( |
|
| 1572 | + ), |
|
| 1573 | + 'message' => array( |
|
| 1574 | 1574 | '0' => 'node', |
| 1575 | 1575 | '1' => 'user', |
| 1576 | 1576 | '2' => ':global', |
| 1577 | - ), |
|
| 1578 | - 'from' => array( |
|
| 1577 | + ), |
|
| 1578 | + 'from' => array( |
|
| 1579 | 1579 | '0' => ':global', |
| 1580 | - ), |
|
| 1580 | + ), |
|
| 1581 | + ), |
|
| 1581 | 1582 | ), |
| 1582 | - ), |
|
| 1583 | 1583 | ), |
| 1584 | 1584 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1585 | 1585 | '#info' => array( |
| 1586 | - 'label' => 'Notify moderators via email', |
|
| 1587 | - 'module' => 'BOINC core', |
|
| 1588 | - 'eval input' => array( |
|
| 1586 | + 'label' => 'Notify moderators via email', |
|
| 1587 | + 'module' => 'BOINC core', |
|
| 1588 | + 'eval input' => array( |
|
| 1589 | 1589 | '0' => 'subject', |
| 1590 | 1590 | '1' => 'message', |
| 1591 | 1591 | '2' => 'from', |
| 1592 | - ), |
|
| 1592 | + ), |
|
| 1593 | + ), |
|
| 1593 | 1594 | ), |
| 1594 | - ), |
|
| 1595 | 1595 | ), |
| 1596 | 1596 | '#version' => 6003, |
| 1597 | - ), |
|
| 1598 | - 'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array( |
|
| 1597 | + ), |
|
| 1598 | + 'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array( |
|
| 1599 | 1599 | '#type' => 'rule', |
| 1600 | 1600 | '#set' => 'event_node_update', |
| 1601 | 1601 | '#label' => 'Forum topic renamed title by moderator or admin', |
| 1602 | 1602 | '#active' => 1, |
| 1603 | 1603 | '#weight' => '0', |
| 1604 | 1604 | '#categories' => array( |
| 1605 | - '0' => 'boinc_standard', |
|
| 1606 | - '1' => 'moderator notification', |
|
| 1605 | + '0' => 'boinc_standard', |
|
| 1606 | + '1' => 'moderator notification', |
|
| 1607 | 1607 | ), |
| 1608 | 1608 | '#status' => 'default', |
| 1609 | 1609 | '#conditions' => array( |
| 1610 | - '0' => array( |
|
| 1610 | + '0' => array( |
|
| 1611 | 1611 | '#weight' => 0, |
| 1612 | 1612 | '#type' => 'condition', |
| 1613 | 1613 | '#settings' => array( |
| 1614 | - 'roles' => array( |
|
| 1614 | + 'roles' => array( |
|
| 1615 | 1615 | '0' => 3519698132, |
| 1616 | 1616 | '1' => 1271379760, |
| 1617 | - ), |
|
| 1618 | - 'operation' => 'OR', |
|
| 1619 | - '#argument map' => array( |
|
| 1617 | + ), |
|
| 1618 | + 'operation' => 'OR', |
|
| 1619 | + '#argument map' => array( |
|
| 1620 | 1620 | 'user' => 'user', |
| 1621 | - ), |
|
| 1621 | + ), |
|
| 1622 | 1622 | ), |
| 1623 | 1623 | '#name' => 'rules_condition_user_hasrole', |
| 1624 | 1624 | '#info' => array( |
| 1625 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 1626 | - 'label callback' => FALSE, |
|
| 1627 | - 'arguments' => array( |
|
| 1625 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 1626 | + 'label callback' => FALSE, |
|
| 1627 | + 'arguments' => array( |
|
| 1628 | 1628 | 'user' => array( |
| 1629 | - 'type' => 'user', |
|
| 1630 | - 'label' => 'User', |
|
| 1629 | + 'type' => 'user', |
|
| 1630 | + 'label' => 'User', |
|
| 1631 | + ), |
|
| 1631 | 1632 | ), |
| 1632 | - ), |
|
| 1633 | - 'module' => 'User', |
|
| 1633 | + 'module' => 'User', |
|
| 1634 | 1634 | ), |
| 1635 | - ), |
|
| 1636 | - '1' => array( |
|
| 1635 | + ), |
|
| 1636 | + '1' => array( |
|
| 1637 | 1637 | '#weight' => 0, |
| 1638 | 1638 | '0' => array( |
| 1639 | - '#weight' => 0, |
|
| 1640 | - '#info' => array( |
|
| 1639 | + '#weight' => 0, |
|
| 1640 | + '#info' => array( |
|
| 1641 | 1641 | 'label' => 'Updated content is Forum topic', |
| 1642 | 1642 | 'arguments' => array( |
| 1643 | - 'node' => array( |
|
| 1643 | + 'node' => array( |
|
| 1644 | 1644 | 'type' => 'node', |
| 1645 | 1645 | 'label' => 'Content', |
| 1646 | - ), |
|
| 1646 | + ), |
|
| 1647 | 1647 | ), |
| 1648 | 1648 | 'module' => 'Node', |
| 1649 | - ), |
|
| 1650 | - '#name' => 'rules_condition_content_is_type', |
|
| 1651 | - '#settings' => array( |
|
| 1649 | + ), |
|
| 1650 | + '#name' => 'rules_condition_content_is_type', |
|
| 1651 | + '#settings' => array( |
|
| 1652 | 1652 | 'type' => array( |
| 1653 | - 'forum' => 'forum', |
|
| 1653 | + 'forum' => 'forum', |
|
| 1654 | 1654 | ), |
| 1655 | 1655 | '#argument map' => array( |
| 1656 | - 'node' => 'node', |
|
| 1656 | + 'node' => 'node', |
|
| 1657 | + ), |
|
| 1657 | 1658 | ), |
| 1658 | - ), |
|
| 1659 | - '#type' => 'condition', |
|
| 1659 | + '#type' => 'condition', |
|
| 1660 | 1660 | ), |
| 1661 | 1661 | '#type' => 'OR', |
| 1662 | 1662 | '1' => array( |
| 1663 | - '#type' => 'condition', |
|
| 1664 | - '#settings' => array( |
|
| 1663 | + '#type' => 'condition', |
|
| 1664 | + '#settings' => array( |
|
| 1665 | 1665 | 'type' => array( |
| 1666 | - 'team_forum' => 'team_forum', |
|
| 1666 | + 'team_forum' => 'team_forum', |
|
| 1667 | 1667 | ), |
| 1668 | 1668 | '#argument map' => array( |
| 1669 | - 'node' => 'node', |
|
| 1669 | + 'node' => 'node', |
|
| 1670 | + ), |
|
| 1670 | 1671 | ), |
| 1671 | - ), |
|
| 1672 | - '#name' => 'rules_condition_content_is_type', |
|
| 1673 | - '#info' => array( |
|
| 1672 | + '#name' => 'rules_condition_content_is_type', |
|
| 1673 | + '#info' => array( |
|
| 1674 | 1674 | 'label' => 'Updated content is Team forum topic', |
| 1675 | 1675 | 'arguments' => array( |
| 1676 | - 'node' => array( |
|
| 1676 | + 'node' => array( |
|
| 1677 | 1677 | 'type' => 'node', |
| 1678 | 1678 | 'label' => 'Content', |
| 1679 | - ), |
|
| 1679 | + ), |
|
| 1680 | 1680 | ), |
| 1681 | 1681 | 'module' => 'Node', |
| 1682 | - ), |
|
| 1683 | - '#weight' => 0, |
|
| 1682 | + ), |
|
| 1683 | + '#weight' => 0, |
|
| 1684 | + ), |
|
| 1684 | 1685 | ), |
| 1685 | - ), |
|
| 1686 | - '2' => array( |
|
| 1686 | + '2' => array( |
|
| 1687 | 1687 | '#weight' => 0, |
| 1688 | 1688 | '#info' => array( |
| 1689 | - 'label' => 'PHP code: title changed', |
|
| 1690 | - 'label callback' => FALSE, |
|
| 1691 | - 'module' => 'PHP', |
|
| 1692 | - 'eval input' => array( |
|
| 1689 | + 'label' => 'PHP code: title changed', |
|
| 1690 | + 'label callback' => FALSE, |
|
| 1691 | + 'module' => 'PHP', |
|
| 1692 | + 'eval input' => array( |
|
| 1693 | 1693 | '0' => 'code', |
| 1694 | - ), |
|
| 1694 | + ), |
|
| 1695 | 1695 | ), |
| 1696 | 1696 | '#name' => 'rules_condition_custom_php', |
| 1697 | 1697 | '#settings' => array( |
| 1698 | - 'code' => 'return ($node->title != $node_unchanged->title);', |
|
| 1699 | - 'vars' => array( |
|
| 1698 | + 'code' => 'return ($node->title != $node_unchanged->title);', |
|
| 1699 | + 'vars' => array( |
|
| 1700 | 1700 | '0' => 'node', |
| 1701 | 1701 | '1' => 'node_unchanged', |
| 1702 | - ), |
|
| 1703 | - '#eval input' => array( |
|
| 1702 | + ), |
|
| 1703 | + '#eval input' => array( |
|
| 1704 | 1704 | 'token_rules_input_evaluator' => array( |
| 1705 | - 'code' => array( |
|
| 1705 | + 'code' => array( |
|
| 1706 | 1706 | '0' => ':global', |
| 1707 | - ), |
|
| 1707 | + ), |
|
| 1708 | + ), |
|
| 1708 | 1709 | ), |
| 1709 | - ), |
|
| 1710 | 1710 | ), |
| 1711 | 1711 | '#type' => 'condition', |
| 1712 | - ), |
|
| 1712 | + ), |
|
| 1713 | 1713 | ), |
| 1714 | 1714 | '#actions' => array( |
| 1715 | - '0' => array( |
|
| 1715 | + '0' => array( |
|
| 1716 | 1716 | '#weight' => 0, |
| 1717 | 1717 | '#type' => 'action', |
| 1718 | 1718 | '#settings' => array( |
| 1719 | - 'from' => '', |
|
| 1720 | - 'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin', |
|
| 1721 | - 'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1722 | - '#eval input' => array( |
|
| 1719 | + 'from' => '', |
|
| 1720 | + 'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin', |
|
| 1721 | + 'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 1722 | + '#eval input' => array( |
|
| 1723 | 1723 | 'token_rules_input_evaluator' => array( |
| 1724 | - 'subject' => array( |
|
| 1724 | + 'subject' => array( |
|
| 1725 | 1725 | '0' => ':global', |
| 1726 | - ), |
|
| 1727 | - 'message' => array( |
|
| 1726 | + ), |
|
| 1727 | + 'message' => array( |
|
| 1728 | 1728 | '0' => 'node', |
| 1729 | 1729 | '1' => 'user', |
| 1730 | 1730 | '2' => ':global', |
| 1731 | - ), |
|
| 1732 | - 'from' => array( |
|
| 1731 | + ), |
|
| 1732 | + 'from' => array( |
|
| 1733 | 1733 | '0' => ':global', |
| 1734 | - ), |
|
| 1734 | + ), |
|
| 1735 | + ), |
|
| 1735 | 1736 | ), |
| 1736 | - ), |
|
| 1737 | 1737 | ), |
| 1738 | 1738 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1739 | 1739 | '#info' => array( |
| 1740 | - 'label' => 'Notify moderators via email', |
|
| 1741 | - 'module' => 'BOINC core', |
|
| 1742 | - 'eval input' => array( |
|
| 1740 | + 'label' => 'Notify moderators via email', |
|
| 1741 | + 'module' => 'BOINC core', |
|
| 1742 | + 'eval input' => array( |
|
| 1743 | 1743 | '0' => 'subject', |
| 1744 | 1744 | '1' => 'message', |
| 1745 | 1745 | '2' => 'from', |
| 1746 | - ), |
|
| 1746 | + ), |
|
| 1747 | + ), |
|
| 1747 | 1748 | ), |
| 1748 | - ), |
|
| 1749 | 1749 | ), |
| 1750 | 1750 | '#version' => 6003, |
| 1751 | - ), |
|
| 1752 | - 'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array( |
|
| 1751 | + ), |
|
| 1752 | + 'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array( |
|
| 1753 | 1753 | '#type' => 'rule', |
| 1754 | 1754 | '#set' => 'event_boinccore_comment_convert', |
| 1755 | 1755 | '#label' => 'Comment is converted to new forum topic by moderator or admin', |
| 1756 | 1756 | '#active' => 1, |
| 1757 | 1757 | '#weight' => '0', |
| 1758 | 1758 | '#categories' => array( |
| 1759 | - '0' => 'boinc_standard', |
|
| 1760 | - '1' => 'moderator notification', |
|
| 1759 | + '0' => 'boinc_standard', |
|
| 1760 | + '1' => 'moderator notification', |
|
| 1761 | 1761 | ), |
| 1762 | 1762 | '#status' => 'default', |
| 1763 | 1763 | '#conditions' => array(), |
| 1764 | 1764 | '#actions' => array( |
| 1765 | - '0' => array( |
|
| 1765 | + '0' => array( |
|
| 1766 | 1766 | '#info' => array( |
| 1767 | - 'label' => 'Notify moderators via email', |
|
| 1768 | - 'module' => 'BOINC core', |
|
| 1769 | - 'eval input' => array( |
|
| 1767 | + 'label' => 'Notify moderators via email', |
|
| 1768 | + 'module' => 'BOINC core', |
|
| 1769 | + 'eval input' => array( |
|
| 1770 | 1770 | '0' => 'subject', |
| 1771 | 1771 | '1' => 'message', |
| 1772 | 1772 | '2' => 'from', |
| 1773 | - ), |
|
| 1773 | + ), |
|
| 1774 | 1774 | ), |
| 1775 | 1775 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1776 | 1776 | '#settings' => array( |
| 1777 | - 'from' => '', |
|
| 1778 | - 'subject' => 'Comment at [:global:site-name] converted to new forum topic', |
|
| 1779 | - 'message' => 'Comment has been converted to new forum topic by moderator/admin [user:display-name]. |
|
| 1777 | + 'from' => '', |
|
| 1778 | + 'subject' => 'Comment at [:global:site-name] converted to new forum topic', |
|
| 1779 | + 'message' => 'Comment has been converted to new forum topic by moderator/admin [user:display-name]. |
|
| 1780 | 1780 | ', |
| 1781 | - '#eval input' => array( |
|
| 1781 | + '#eval input' => array( |
|
| 1782 | 1782 | 'token_rules_input_evaluator' => array( |
| 1783 | - 'subject' => array( |
|
| 1783 | + 'subject' => array( |
|
| 1784 | 1784 | '0' => ':global', |
| 1785 | - ), |
|
| 1786 | - 'message' => array( |
|
| 1785 | + ), |
|
| 1786 | + 'message' => array( |
|
| 1787 | 1787 | '0' => 'user', |
| 1788 | 1788 | '1' => ':global', |
| 1789 | - ), |
|
| 1790 | - 'from' => array( |
|
| 1789 | + ), |
|
| 1790 | + 'from' => array( |
|
| 1791 | 1791 | '0' => ':global', |
| 1792 | - ), |
|
| 1792 | + ), |
|
| 1793 | + ), |
|
| 1793 | 1794 | ), |
| 1794 | - ), |
|
| 1795 | 1795 | ), |
| 1796 | 1796 | '#type' => 'action', |
| 1797 | 1797 | '#weight' => 0, |
| 1798 | - ), |
|
| 1798 | + ), |
|
| 1799 | 1799 | ), |
| 1800 | 1800 | '#version' => 6003, |
| 1801 | - ), |
|
| 1802 | - 'rules_comment_edited_by_moderator_or_admin' => array( |
|
| 1801 | + ), |
|
| 1802 | + 'rules_comment_edited_by_moderator_or_admin' => array( |
|
| 1803 | 1803 | '#type' => 'rule', |
| 1804 | 1804 | '#set' => 'event_comment_update', |
| 1805 | 1805 | '#label' => 'Comment is edited by moderator or admin', |
| 1806 | 1806 | '#active' => 1, |
| 1807 | 1807 | '#weight' => '0', |
| 1808 | 1808 | '#categories' => array( |
| 1809 | - '0' => 'boinc_standard', |
|
| 1810 | - '1' => 'moderator notification', |
|
| 1809 | + '0' => 'boinc_standard', |
|
| 1810 | + '1' => 'moderator notification', |
|
| 1811 | 1811 | ), |
| 1812 | 1812 | '#status' => 'default', |
| 1813 | 1813 | '#conditions' => array( |
| 1814 | - '0' => array( |
|
| 1814 | + '0' => array( |
|
| 1815 | 1815 | '#negate' => 1, |
| 1816 | 1816 | '#weight' => 0, |
| 1817 | 1817 | '#info' => array( |
| 1818 | - 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
|
| 1819 | - 'label callback' => FALSE, |
|
| 1820 | - 'arguments' => array( |
|
| 1818 | + 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
|
| 1819 | + 'label callback' => FALSE, |
|
| 1820 | + 'arguments' => array( |
|
| 1821 | 1821 | 'user1' => array( |
| 1822 | - 'type' => 'user', |
|
| 1823 | - 'label' => 'User account 1', |
|
| 1822 | + 'type' => 'user', |
|
| 1823 | + 'label' => 'User account 1', |
|
| 1824 | 1824 | ), |
| 1825 | 1825 | 'user2' => array( |
| 1826 | - 'type' => 'user', |
|
| 1827 | - 'label' => 'User account 2', |
|
| 1826 | + 'type' => 'user', |
|
| 1827 | + 'label' => 'User account 2', |
|
| 1828 | 1828 | ), |
| 1829 | - ), |
|
| 1830 | - 'module' => 'User', |
|
| 1829 | + ), |
|
| 1830 | + 'module' => 'User', |
|
| 1831 | 1831 | ), |
| 1832 | 1832 | '#name' => 'rules_condition_user_comparison', |
| 1833 | 1833 | '#settings' => array( |
| 1834 | - '#argument map' => array( |
|
| 1834 | + '#argument map' => array( |
|
| 1835 | 1835 | 'user1' => 'user', |
| 1836 | 1836 | 'user2' => 'comment_author', |
| 1837 | - ), |
|
| 1837 | + ), |
|
| 1838 | 1838 | ), |
| 1839 | 1839 | '#type' => 'condition', |
| 1840 | - ), |
|
| 1840 | + ), |
|
| 1841 | 1841 | ), |
| 1842 | 1842 | '#actions' => array( |
| 1843 | - '0' => array( |
|
| 1843 | + '0' => array( |
|
| 1844 | 1844 | '#weight' => 0, |
| 1845 | 1845 | '#type' => 'action', |
| 1846 | 1846 | '#settings' => array( |
| 1847 | - 'from' => '', |
|
| 1848 | - 'subject' => 'Comment edited at [:global:site-name] by moderator or admin', |
|
| 1849 | - 'message' => "Comment has been edited by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 1850 | - '#eval input' => array( |
|
| 1847 | + 'from' => '', |
|
| 1848 | + 'subject' => 'Comment edited at [:global:site-name] by moderator or admin', |
|
| 1849 | + 'message' => "Comment has been edited by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 1850 | + '#eval input' => array( |
|
| 1851 | 1851 | 'token_rules_input_evaluator' => array( |
| 1852 | - 'subject' => array( |
|
| 1852 | + 'subject' => array( |
|
| 1853 | 1853 | '0' => ':global', |
| 1854 | - ), |
|
| 1855 | - 'message' => array( |
|
| 1854 | + ), |
|
| 1855 | + 'message' => array( |
|
| 1856 | 1856 | '0' => 'comment', |
| 1857 | 1857 | '1' => 'user', |
| 1858 | 1858 | '2' => ':global', |
| 1859 | - ), |
|
| 1860 | - 'from' => array( |
|
| 1859 | + ), |
|
| 1860 | + 'from' => array( |
|
| 1861 | 1861 | '0' => ':global', |
| 1862 | - ), |
|
| 1862 | + ), |
|
| 1863 | + ), |
|
| 1863 | 1864 | ), |
| 1864 | - ), |
|
| 1865 | 1865 | ), |
| 1866 | 1866 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1867 | 1867 | '#info' => array( |
| 1868 | - 'label' => 'Notify moderators via email', |
|
| 1869 | - 'module' => 'BOINC core', |
|
| 1870 | - 'eval input' => array( |
|
| 1868 | + 'label' => 'Notify moderators via email', |
|
| 1869 | + 'module' => 'BOINC core', |
|
| 1870 | + 'eval input' => array( |
|
| 1871 | 1871 | '0' => 'subject', |
| 1872 | 1872 | '1' => 'message', |
| 1873 | 1873 | '2' => 'from', |
| 1874 | - ), |
|
| 1874 | + ), |
|
| 1875 | + ), |
|
| 1875 | 1876 | ), |
| 1876 | - ), |
|
| 1877 | 1877 | ), |
| 1878 | 1878 | '#version' => 6003, |
| 1879 | - ), |
|
| 1880 | - 'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array( |
|
| 1879 | + ), |
|
| 1880 | + 'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array( |
|
| 1881 | 1881 | '#type' => 'rule', |
| 1882 | 1882 | '#set' => 'event_comment_unpublish', |
| 1883 | 1883 | '#label' => 'Comment is hidden by moderator or admin', |
| 1884 | 1884 | '#active' => 1, |
| 1885 | 1885 | '#weight' => '0', |
| 1886 | 1886 | '#categories' => array( |
| 1887 | - '0' => 'boinc_standard', |
|
| 1888 | - '1' => 'moderator notification', |
|
| 1887 | + '0' => 'boinc_standard', |
|
| 1888 | + '1' => 'moderator notification', |
|
| 1889 | 1889 | ), |
| 1890 | 1890 | '#status' => 'default', |
| 1891 | 1891 | '#conditions' => array( |
| 1892 | - '0' => array( |
|
| 1892 | + '0' => array( |
|
| 1893 | 1893 | '#weight' => 0, |
| 1894 | 1894 | '#negate' => 1, |
| 1895 | 1895 | '#info' => array( |
| 1896 | - 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
|
| 1897 | - 'label callback' => FALSE, |
|
| 1898 | - 'arguments' => array( |
|
| 1896 | + 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
|
| 1897 | + 'label callback' => FALSE, |
|
| 1898 | + 'arguments' => array( |
|
| 1899 | 1899 | 'user1' => array( |
| 1900 | - 'type' => 'user', |
|
| 1901 | - 'label' => 'User account 1', |
|
| 1900 | + 'type' => 'user', |
|
| 1901 | + 'label' => 'User account 1', |
|
| 1902 | 1902 | ), |
| 1903 | 1903 | 'user2' => array( |
| 1904 | - 'type' => 'user', |
|
| 1905 | - 'label' => 'User account 2', |
|
| 1904 | + 'type' => 'user', |
|
| 1905 | + 'label' => 'User account 2', |
|
| 1906 | 1906 | ), |
| 1907 | - ), |
|
| 1908 | - 'module' => 'User', |
|
| 1907 | + ), |
|
| 1908 | + 'module' => 'User', |
|
| 1909 | 1909 | ), |
| 1910 | 1910 | '#name' => 'rules_condition_user_comparison', |
| 1911 | 1911 | '#type' => 'condition', |
| 1912 | 1912 | '#settings' => array( |
| 1913 | - '#argument map' => array( |
|
| 1913 | + '#argument map' => array( |
|
| 1914 | 1914 | 'user1' => 'user', |
| 1915 | 1915 | 'user2' => 'comment_author', |
| 1916 | - ), |
|
| 1916 | + ), |
|
| 1917 | + ), |
|
| 1917 | 1918 | ), |
| 1918 | - ), |
|
| 1919 | 1919 | ), |
| 1920 | 1920 | '#actions' => array( |
| 1921 | - '0' => array( |
|
| 1921 | + '0' => array( |
|
| 1922 | 1922 | '#weight' => 0, |
| 1923 | 1923 | '#type' => 'action', |
| 1924 | 1924 | '#settings' => array( |
| 1925 | - 'from' => '', |
|
| 1926 | - 'subject' => 'Comment at [:global:site-name] hidden by moderator or admin', |
|
| 1927 | - 'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 1928 | - '#eval input' => array( |
|
| 1925 | + 'from' => '', |
|
| 1926 | + 'subject' => 'Comment at [:global:site-name] hidden by moderator or admin', |
|
| 1927 | + 'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 1928 | + '#eval input' => array( |
|
| 1929 | 1929 | 'token_rules_input_evaluator' => array( |
| 1930 | - 'subject' => array( |
|
| 1930 | + 'subject' => array( |
|
| 1931 | 1931 | '0' => ':global', |
| 1932 | - ), |
|
| 1933 | - 'message' => array( |
|
| 1932 | + ), |
|
| 1933 | + 'message' => array( |
|
| 1934 | 1934 | '0' => 'comment', |
| 1935 | 1935 | '1' => 'user', |
| 1936 | 1936 | '2' => ':global', |
| 1937 | - ), |
|
| 1938 | - 'from' => array( |
|
| 1937 | + ), |
|
| 1938 | + 'from' => array( |
|
| 1939 | 1939 | '0' => ':global', |
| 1940 | - ), |
|
| 1940 | + ), |
|
| 1941 | + ), |
|
| 1941 | 1942 | ), |
| 1942 | - ), |
|
| 1943 | 1943 | ), |
| 1944 | 1944 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1945 | 1945 | '#info' => array( |
| 1946 | - 'label' => 'Notify moderators via email', |
|
| 1947 | - 'module' => 'BOINC core', |
|
| 1948 | - 'eval input' => array( |
|
| 1946 | + 'label' => 'Notify moderators via email', |
|
| 1947 | + 'module' => 'BOINC core', |
|
| 1948 | + 'eval input' => array( |
|
| 1949 | 1949 | '0' => 'subject', |
| 1950 | 1950 | '1' => 'message', |
| 1951 | 1951 | '2' => 'from', |
| 1952 | - ), |
|
| 1952 | + ), |
|
| 1953 | + ), |
|
| 1953 | 1954 | ), |
| 1954 | - ), |
|
| 1955 | 1955 | ), |
| 1956 | 1956 | '#version' => 6003, |
| 1957 | - ), |
|
| 1958 | - 'rules_comment_is_published_unhidden_by_moderator_or_admin' => array( |
|
| 1957 | + ), |
|
| 1958 | + 'rules_comment_is_published_unhidden_by_moderator_or_admin' => array( |
|
| 1959 | 1959 | '#type' => 'rule', |
| 1960 | 1960 | '#set' => 'event_boinccore_comment_unhidden', |
| 1961 | 1961 | '#label' => 'Comment is unhidden by moderator or admin', |
| 1962 | 1962 | '#active' => 1, |
| 1963 | 1963 | '#weight' => '0', |
| 1964 | 1964 | '#categories' => array( |
| 1965 | - '0' => 'boinc_standard', |
|
| 1966 | - '1' => 'moderator notification', |
|
| 1965 | + '0' => 'boinc_standard', |
|
| 1966 | + '1' => 'moderator notification', |
|
| 1967 | 1967 | ), |
| 1968 | 1968 | '#status' => 'default', |
| 1969 | 1969 | '#conditions' => array( |
| 1970 | - '0' => array( |
|
| 1970 | + '0' => array( |
|
| 1971 | 1971 | '#type' => 'condition', |
| 1972 | 1972 | '#settings' => array( |
| 1973 | - '#argument map' => array( |
|
| 1973 | + '#argument map' => array( |
|
| 1974 | 1974 | 'user1' => 'user', |
| 1975 | 1975 | 'user2' => 'comment_author', |
| 1976 | - ), |
|
| 1976 | + ), |
|
| 1977 | 1977 | ), |
| 1978 | 1978 | '#name' => 'rules_condition_user_comparison', |
| 1979 | 1979 | '#info' => array( |
| 1980 | - 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
|
| 1981 | - 'label callback' => FALSE, |
|
| 1982 | - 'arguments' => array( |
|
| 1980 | + 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
|
| 1981 | + 'label callback' => FALSE, |
|
| 1982 | + 'arguments' => array( |
|
| 1983 | 1983 | 'user1' => array( |
| 1984 | - 'type' => 'user', |
|
| 1985 | - 'label' => 'User account 1', |
|
| 1984 | + 'type' => 'user', |
|
| 1985 | + 'label' => 'User account 1', |
|
| 1986 | 1986 | ), |
| 1987 | 1987 | 'user2' => array( |
| 1988 | - 'type' => 'user', |
|
| 1989 | - 'label' => 'User account 2', |
|
| 1988 | + 'type' => 'user', |
|
| 1989 | + 'label' => 'User account 2', |
|
| 1990 | 1990 | ), |
| 1991 | - ), |
|
| 1992 | - 'module' => 'User', |
|
| 1991 | + ), |
|
| 1992 | + 'module' => 'User', |
|
| 1993 | 1993 | ), |
| 1994 | 1994 | '#negate' => 1, |
| 1995 | 1995 | '#weight' => 0, |
| 1996 | - ), |
|
| 1996 | + ), |
|
| 1997 | 1997 | ), |
| 1998 | 1998 | '#actions' => array( |
| 1999 | - '0' => array( |
|
| 1999 | + '0' => array( |
|
| 2000 | 2000 | '#weight' => 0, |
| 2001 | 2001 | '#info' => array( |
| 2002 | - 'label' => 'Notify moderators via email', |
|
| 2003 | - 'module' => 'BOINC core', |
|
| 2004 | - 'eval input' => array( |
|
| 2002 | + 'label' => 'Notify moderators via email', |
|
| 2003 | + 'module' => 'BOINC core', |
|
| 2004 | + 'eval input' => array( |
|
| 2005 | 2005 | '0' => 'subject', |
| 2006 | 2006 | '1' => 'message', |
| 2007 | 2007 | '2' => 'from', |
| 2008 | - ), |
|
| 2008 | + ), |
|
| 2009 | 2009 | ), |
| 2010 | 2010 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2011 | 2011 | '#settings' => array( |
| 2012 | - 'from' => '', |
|
| 2013 | - 'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin', |
|
| 2014 | - 'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 2015 | - '#eval input' => array( |
|
| 2012 | + 'from' => '', |
|
| 2013 | + 'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin', |
|
| 2014 | + 'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: [:global:site-url]/goto/comment/[comment:comment-cid]", |
|
| 2015 | + '#eval input' => array( |
|
| 2016 | 2016 | 'token_rules_input_evaluator' => array( |
| 2017 | - 'subject' => array( |
|
| 2017 | + 'subject' => array( |
|
| 2018 | 2018 | '0' => ':global', |
| 2019 | - ), |
|
| 2020 | - 'message' => array( |
|
| 2019 | + ), |
|
| 2020 | + 'message' => array( |
|
| 2021 | 2021 | '0' => 'comment', |
| 2022 | 2022 | '1' => 'user', |
| 2023 | 2023 | '2' => ':global', |
| 2024 | - ), |
|
| 2025 | - 'from' => array( |
|
| 2024 | + ), |
|
| 2025 | + 'from' => array( |
|
| 2026 | 2026 | '0' => ':global', |
| 2027 | - ), |
|
| 2027 | + ), |
|
| 2028 | + ), |
|
| 2028 | 2029 | ), |
| 2029 | - ), |
|
| 2030 | 2030 | ), |
| 2031 | 2031 | '#type' => 'action', |
| 2032 | - ), |
|
| 2032 | + ), |
|
| 2033 | 2033 | ), |
| 2034 | 2034 | '#version' => 6003, |
| 2035 | - ), |
|
| 2036 | - 'rules_comment_deleted_by_admin' => array( |
|
| 2035 | + ), |
|
| 2036 | + 'rules_comment_deleted_by_admin' => array( |
|
| 2037 | 2037 | '#type' => 'rule', |
| 2038 | 2038 | '#set' => 'event_comment_delete', |
| 2039 | 2039 | '#label' => 'Comment deleted by admin', |
| 2040 | 2040 | '#active' => 1, |
| 2041 | 2041 | '#weight' => '0', |
| 2042 | 2042 | '#categories' => array( |
| 2043 | - '0' => 'moderator notification', |
|
| 2044 | - '1' => 'boinc_standard', |
|
| 2043 | + '0' => 'moderator notification', |
|
| 2044 | + '1' => 'boinc_standard', |
|
| 2045 | 2045 | ), |
| 2046 | 2046 | '#status' => 'default', |
| 2047 | 2047 | '#conditions' => array(), |
| 2048 | 2048 | '#actions' => array( |
| 2049 | - '0' => array( |
|
| 2049 | + '0' => array( |
|
| 2050 | 2050 | '#weight' => 0, |
| 2051 | 2051 | '#type' => 'action', |
| 2052 | 2052 | '#settings' => array( |
| 2053 | - 'from' => '', |
|
| 2054 | - 'subject' => 'Comment deleted at [:global:site-name] by admin', |
|
| 2055 | - 'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 2056 | - '#eval input' => array( |
|
| 2053 | + 'from' => '', |
|
| 2054 | + 'subject' => 'Comment deleted at [:global:site-name] by admin', |
|
| 2055 | + 'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: [node:node-url]", |
|
| 2056 | + '#eval input' => array( |
|
| 2057 | 2057 | 'token_rules_input_evaluator' => array( |
| 2058 | - 'subject' => array( |
|
| 2058 | + 'subject' => array( |
|
| 2059 | 2059 | '0' => ':global', |
| 2060 | - ), |
|
| 2061 | - 'message' => array( |
|
| 2060 | + ), |
|
| 2061 | + 'message' => array( |
|
| 2062 | 2062 | '0' => 'node', |
| 2063 | 2063 | '1' => 'user', |
| 2064 | 2064 | '2' => ':global', |
| 2065 | - ), |
|
| 2066 | - 'from' => array( |
|
| 2065 | + ), |
|
| 2066 | + 'from' => array( |
|
| 2067 | 2067 | '0' => ':global', |
| 2068 | - ), |
|
| 2068 | + ), |
|
| 2069 | + ), |
|
| 2069 | 2070 | ), |
| 2070 | - ), |
|
| 2071 | 2071 | ), |
| 2072 | 2072 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2073 | 2073 | '#info' => array( |
| 2074 | - 'label' => 'Notify moderators via email', |
|
| 2075 | - 'module' => 'BOINC core', |
|
| 2076 | - 'eval input' => array( |
|
| 2074 | + 'label' => 'Notify moderators via email', |
|
| 2075 | + 'module' => 'BOINC core', |
|
| 2076 | + 'eval input' => array( |
|
| 2077 | 2077 | '0' => 'subject', |
| 2078 | 2078 | '1' => 'message', |
| 2079 | 2079 | '2' => 'from', |
| 2080 | - ), |
|
| 2080 | + ), |
|
| 2081 | + ), |
|
| 2081 | 2082 | ), |
| 2082 | - ), |
|
| 2083 | 2083 | ), |
| 2084 | 2084 | '#version' => 6003, |
| 2085 | - ), |
|
| 2086 | - 'rules_offensive_comment_reported' => array( |
|
| 2085 | + ), |
|
| 2086 | + 'rules_offensive_comment_reported' => array( |
|
| 2087 | 2087 | '#type' => 'rule', |
| 2088 | 2088 | '#set' => 'event_flag_flagged_abuse_comment', |
| 2089 | 2089 | '#label' => 'Offensive comment reported', |
| 2090 | 2090 | '#active' => 1, |
| 2091 | 2091 | '#weight' => '0', |
| 2092 | 2092 | '#categories' => array( |
| 2093 | - '0' => 'moderator notification', |
|
| 2094 | - '1' => 'boinc_standard', |
|
| 2093 | + '0' => 'moderator notification', |
|
| 2094 | + '1' => 'boinc_standard', |
|
| 2095 | 2095 | ), |
| 2096 | 2096 | '#status' => 'default', |
| 2097 | 2097 | '#conditions' => array(), |
| 2098 | 2098 | '#actions' => array( |
| 2099 | - '1' => array( |
|
| 2099 | + '1' => array( |
|
| 2100 | 2100 | '#info' => array( |
| 2101 | - 'label' => 'Notify moderators via email', |
|
| 2102 | - 'module' => 'BOINC core', |
|
| 2103 | - 'eval input' => array( |
|
| 2101 | + 'label' => 'Notify moderators via email', |
|
| 2102 | + 'module' => 'BOINC core', |
|
| 2103 | + 'eval input' => array( |
|
| 2104 | 2104 | '0' => 'subject', |
| 2105 | 2105 | '1' => 'message', |
| 2106 | 2106 | '2' => 'from', |
| 2107 | - ), |
|
| 2107 | + ), |
|
| 2108 | 2108 | ), |
| 2109 | 2109 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2110 | 2110 | '#settings' => array( |
| 2111 | - 'from' => '', |
|
| 2112 | - 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 2113 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as being offensive or inappropriate for the [:global:site-name] site: |
|
| 2111 | + 'from' => '', |
|
| 2112 | + 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 2113 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as being offensive or inappropriate for the [:global:site-name] site: |
|
| 2114 | 2114 | |
| 2115 | 2115 | [:global:site-url]/goto/comment/[comment:comment-cid] |
| 2116 | 2116 | |
| 2117 | 2117 | Total reports of this comment: [comment:flag-abuse-comment-count]', |
| 2118 | - '#eval input' => array( |
|
| 2118 | + '#eval input' => array( |
|
| 2119 | 2119 | 'token_rules_input_evaluator' => array( |
| 2120 | - 'subject' => array( |
|
| 2120 | + 'subject' => array( |
|
| 2121 | 2121 | '0' => 'node', |
| 2122 | 2122 | '1' => ':global', |
| 2123 | - ), |
|
| 2124 | - 'message' => array( |
|
| 2123 | + ), |
|
| 2124 | + 'message' => array( |
|
| 2125 | 2125 | '0' => 'flagging_user', |
| 2126 | 2126 | '1' => 'comment', |
| 2127 | 2127 | '2' => 'node', |
| 2128 | 2128 | '3' => ':global', |
| 2129 | - ), |
|
| 2130 | - 'from' => array( |
|
| 2129 | + ), |
|
| 2130 | + 'from' => array( |
|
| 2131 | 2131 | '0' => ':global', |
| 2132 | - ), |
|
| 2132 | + ), |
|
| 2133 | + ), |
|
| 2133 | 2134 | ), |
| 2134 | - ), |
|
| 2135 | 2135 | ), |
| 2136 | 2136 | '#type' => 'action', |
| 2137 | 2137 | '#weight' => 0, |
| 2138 | - ), |
|
| 2138 | + ), |
|
| 2139 | 2139 | ), |
| 2140 | 2140 | '#version' => 6003, |
| 2141 | - ), |
|
| 2142 | - 'rules_offensive_content_reported' => array( |
|
| 2141 | + ), |
|
| 2142 | + 'rules_offensive_content_reported' => array( |
|
| 2143 | 2143 | '#type' => 'rule', |
| 2144 | 2144 | '#set' => 'event_flag_flagged_abuse_node', |
| 2145 | 2145 | '#label' => 'Offensive content reported', |
| 2146 | 2146 | '#active' => 1, |
| 2147 | 2147 | '#weight' => '0', |
| 2148 | 2148 | '#categories' => array( |
| 2149 | - '0' => 'moderator notification', |
|
| 2150 | - 'boinc_standard' => 'boinc_standard', |
|
| 2149 | + '0' => 'moderator notification', |
|
| 2150 | + 'boinc_standard' => 'boinc_standard', |
|
| 2151 | 2151 | ), |
| 2152 | 2152 | '#status' => 'default', |
| 2153 | 2153 | '#conditions' => array(), |
| 2154 | 2154 | '#actions' => array( |
| 2155 | - '1' => array( |
|
| 2155 | + '1' => array( |
|
| 2156 | 2156 | '#type' => 'action', |
| 2157 | 2157 | '#settings' => array( |
| 2158 | - 'from' => '', |
|
| 2159 | - 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 2160 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site: |
|
| 2158 | + 'from' => '', |
|
| 2159 | + 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 2160 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site: |
|
| 2161 | 2161 | |
| 2162 | 2162 | [:global:site-url]/[node:node-path] |
| 2163 | 2163 | |
| 2164 | 2164 | Total reports of this content: [node:flag-abuse-node-count]', |
| 2165 | - '#eval input' => array( |
|
| 2165 | + '#eval input' => array( |
|
| 2166 | 2166 | 'token_rules_input_evaluator' => array( |
| 2167 | - 'subject' => array( |
|
| 2167 | + 'subject' => array( |
|
| 2168 | 2168 | '0' => 'node', |
| 2169 | 2169 | '1' => ':global', |
| 2170 | - ), |
|
| 2171 | - 'message' => array( |
|
| 2170 | + ), |
|
| 2171 | + 'message' => array( |
|
| 2172 | 2172 | '0' => 'flagging_user', |
| 2173 | 2173 | '1' => 'node', |
| 2174 | 2174 | '2' => ':global', |
| 2175 | - ), |
|
| 2176 | - 'from' => array( |
|
| 2175 | + ), |
|
| 2176 | + 'from' => array( |
|
| 2177 | 2177 | '0' => ':global', |
| 2178 | - ), |
|
| 2178 | + ), |
|
| 2179 | + ), |
|
| 2179 | 2180 | ), |
| 2180 | - ), |
|
| 2181 | 2181 | ), |
| 2182 | 2182 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2183 | 2183 | '#info' => array( |
| 2184 | - 'label' => 'Notify moderators via email', |
|
| 2185 | - 'module' => 'BOINC core', |
|
| 2186 | - 'eval input' => array( |
|
| 2184 | + 'label' => 'Notify moderators via email', |
|
| 2185 | + 'module' => 'BOINC core', |
|
| 2186 | + 'eval input' => array( |
|
| 2187 | 2187 | '0' => 'subject', |
| 2188 | 2188 | '1' => 'message', |
| 2189 | 2189 | '2' => 'from', |
| 2190 | - ), |
|
| 2190 | + ), |
|
| 2191 | 2191 | ), |
| 2192 | 2192 | '#weight' => 0, |
| 2193 | - ), |
|
| 2193 | + ), |
|
| 2194 | 2194 | ), |
| 2195 | 2195 | '#version' => 6003, |
| 2196 | - ), |
|
| 2197 | - 'rules_offensive_user_reported' => array( |
|
| 2196 | + ), |
|
| 2197 | + 'rules_offensive_user_reported' => array( |
|
| 2198 | 2198 | '#type' => 'rule', |
| 2199 | 2199 | '#set' => 'event_flag_flagged_abuse_user', |
| 2200 | 2200 | '#label' => 'Offensive user reported', |
| 2201 | 2201 | '#active' => 1, |
| 2202 | 2202 | '#weight' => '0', |
| 2203 | 2203 | '#categories' => array( |
| 2204 | - '0' => 'moderator notification', |
|
| 2205 | - 'boinc_standard' => 'boinc_standard', |
|
| 2204 | + '0' => 'moderator notification', |
|
| 2205 | + 'boinc_standard' => 'boinc_standard', |
|
| 2206 | 2206 | ), |
| 2207 | 2207 | '#status' => 'default', |
| 2208 | 2208 | '#conditions' => array(), |
| 2209 | 2209 | '#actions' => array( |
| 2210 | - '1' => array( |
|
| 2210 | + '1' => array( |
|
| 2211 | 2211 | '#type' => 'action', |
| 2212 | 2212 | '#settings' => array( |
| 2213 | - 'from' => '', |
|
| 2214 | - 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 2215 | - 'message' => '[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior: |
|
| 2213 | + 'from' => '', |
|
| 2214 | + 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 2215 | + 'message' => '[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior: |
|
| 2216 | 2216 | |
| 2217 | 2217 | [:global:site-url]/account/[account:uid] |
| 2218 | 2218 | |
| 2219 | 2219 | Total current reports of this user: [account:flag-abuse-user-count]', |
| 2220 | - '#eval input' => array( |
|
| 2220 | + '#eval input' => array( |
|
| 2221 | 2221 | 'token_rules_input_evaluator' => array( |
| 2222 | - 'subject' => array( |
|
| 2222 | + 'subject' => array( |
|
| 2223 | 2223 | '0' => ':global', |
| 2224 | - ), |
|
| 2225 | - 'message' => array( |
|
| 2224 | + ), |
|
| 2225 | + 'message' => array( |
|
| 2226 | 2226 | '0' => 'flagging_user', |
| 2227 | 2227 | '1' => 'account', |
| 2228 | 2228 | '2' => ':global', |
| 2229 | - ), |
|
| 2230 | - 'from' => array( |
|
| 2229 | + ), |
|
| 2230 | + 'from' => array( |
|
| 2231 | 2231 | '0' => ':global', |
| 2232 | - ), |
|
| 2232 | + ), |
|
| 2233 | + ), |
|
| 2233 | 2234 | ), |
| 2234 | - ), |
|
| 2235 | 2235 | ), |
| 2236 | 2236 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2237 | 2237 | '#info' => array( |
| 2238 | - 'label' => 'Notify moderators via email', |
|
| 2239 | - 'module' => 'BOINC core', |
|
| 2240 | - 'eval input' => array( |
|
| 2238 | + 'label' => 'Notify moderators via email', |
|
| 2239 | + 'module' => 'BOINC core', |
|
| 2240 | + 'eval input' => array( |
|
| 2241 | 2241 | '0' => 'subject', |
| 2242 | 2242 | '1' => 'message', |
| 2243 | 2243 | '2' => 'from', |
| 2244 | - ), |
|
| 2244 | + ), |
|
| 2245 | 2245 | ), |
| 2246 | 2246 | '#weight' => 0, |
| 2247 | - ), |
|
| 2247 | + ), |
|
| 2248 | 2248 | ), |
| 2249 | 2249 | '#version' => 6003, |
| 2250 | - ), |
|
| 2250 | + ), |
|
| 2251 | 2251 | ), |
| 2252 | - ); |
|
| 2252 | + ); |
|
| 2253 | 2253 | } |
| 2254 | 2254 | |
| 2255 | 2255 | /** |
| 2256 | 2256 | * Implementation of hook_views_api(). |
| 2257 | 2257 | */ |
| 2258 | 2258 | function boinc_standard_views_api() { |
| 2259 | - return array( |
|
| 2259 | + return array( |
|
| 2260 | 2260 | 'api' => '2', |
| 2261 | - ); |
|
| 2261 | + ); |
|
| 2262 | 2262 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $flags['abuse_comment'] = array( |
| 32 | 32 | 'content_type' => 'comment', |
| 33 | 33 | 'title' => 'Comment Abuse', |
| 34 | - 'global' => FALSE, |
|
| 34 | + 'global' => false, |
|
| 35 | 35 | 'types' => array( |
| 36 | 36 | '0' => 'forum', |
| 37 | 37 | '1' => 'news', |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | $flags['abuse_node'] = array( |
| 67 | 67 | 'content_type' => 'node', |
| 68 | 68 | 'title' => 'Node Abuse', |
| 69 | - 'global' => FALSE, |
|
| 69 | + 'global' => false, |
|
| 70 | 70 | 'types' => array( |
| 71 | 71 | '0' => 'forum', |
| 72 | 72 | '1' => 'profile', |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | ), |
| 124 | 124 | ), |
| 125 | 125 | 'weight' => 0, |
| 126 | - 'show_on_profile' => TRUE, |
|
| 126 | + 'show_on_profile' => true, |
|
| 127 | 127 | 'access_uid' => '', |
| 128 | 128 | 'flag_confirmation' => 'Are you sure you want to report this user as offensive?', |
| 129 | 129 | 'unflag_confirmation' => 'Are you sure you want to remove your report of this user?', |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | '#name' => 'rules_condition_user_hasrole', |
| 229 | 229 | '#info' => array( |
| 230 | 230 | 'label' => 'User has role(s): administrator or moderator', |
| 231 | - 'label callback' => FALSE, |
|
| 231 | + 'label callback' => false, |
|
| 232 | 232 | 'arguments' => array( |
| 233 | 233 | 'user' => array( |
| 234 | 234 | 'type' => 'user', |
@@ -293,7 +293,7 @@ discard block |
||
| 293 | 293 | '#weight' => 0, |
| 294 | 294 | '#info' => array( |
| 295 | 295 | 'label' => 'PHP code: node content unchanged', |
| 296 | - 'label callback' => FALSE, |
|
| 296 | + 'label callback' => false, |
|
| 297 | 297 | 'module' => 'PHP', |
| 298 | 298 | 'eval input' => array( |
| 299 | 299 | '0' => 'code', |
@@ -320,7 +320,7 @@ discard block |
||
| 320 | 320 | '#weight' => 0, |
| 321 | 321 | '#info' => array( |
| 322 | 322 | 'label' => 'PHP code: node made sticky', |
| 323 | - 'label callback' => FALSE, |
|
| 323 | + 'label callback' => false, |
|
| 324 | 324 | 'module' => 'PHP', |
| 325 | 325 | 'eval input' => array( |
| 326 | 326 | '0' => 'code', |
@@ -409,7 +409,7 @@ discard block |
||
| 409 | 409 | '#name' => 'rules_condition_user_hasrole', |
| 410 | 410 | '#info' => array( |
| 411 | 411 | 'label' => 'User has role(s): administrator or moderator', |
| 412 | - 'label callback' => FALSE, |
|
| 412 | + 'label callback' => false, |
|
| 413 | 413 | 'arguments' => array( |
| 414 | 414 | 'user' => array( |
| 415 | 415 | 'type' => 'user', |
@@ -474,7 +474,7 @@ discard block |
||
| 474 | 474 | '#weight' => 0, |
| 475 | 475 | '#info' => array( |
| 476 | 476 | 'label' => 'PHP code: node content unchanged', |
| 477 | - 'label callback' => FALSE, |
|
| 477 | + 'label callback' => false, |
|
| 478 | 478 | 'module' => 'PHP', |
| 479 | 479 | 'eval input' => array( |
| 480 | 480 | '0' => 'code', |
@@ -501,7 +501,7 @@ discard block |
||
| 501 | 501 | '#weight' => 0, |
| 502 | 502 | '#info' => array( |
| 503 | 503 | 'label' => 'PHP code: node made sticky', |
| 504 | - 'label callback' => FALSE, |
|
| 504 | + 'label callback' => false, |
|
| 505 | 505 | 'module' => 'PHP', |
| 506 | 506 | 'eval input' => array( |
| 507 | 507 | '0' => 'code', |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | '#name' => 'rules_condition_user_hasrole', |
| 591 | 591 | '#info' => array( |
| 592 | 592 | 'label' => 'User has role(s): administrator or moderator', |
| 593 | - 'label callback' => FALSE, |
|
| 593 | + 'label callback' => false, |
|
| 594 | 594 | 'arguments' => array( |
| 595 | 595 | 'user' => array( |
| 596 | 596 | 'type' => 'user', |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | '#weight' => 0, |
| 656 | 656 | '#info' => array( |
| 657 | 657 | 'label' => 'PHP code: node content unchanged', |
| 658 | - 'label callback' => FALSE, |
|
| 658 | + 'label callback' => false, |
|
| 659 | 659 | 'module' => 'PHP', |
| 660 | 660 | 'eval input' => array( |
| 661 | 661 | '0' => 'code', |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | '#weight' => 0, |
| 683 | 683 | '#info' => array( |
| 684 | 684 | 'label' => 'PHP code: node locked', |
| 685 | - 'label callback' => FALSE, |
|
| 685 | + 'label callback' => false, |
|
| 686 | 686 | 'module' => 'PHP', |
| 687 | 687 | 'eval input' => array( |
| 688 | 688 | '0' => 'code', |
@@ -771,7 +771,7 @@ discard block |
||
| 771 | 771 | '#name' => 'rules_condition_user_hasrole', |
| 772 | 772 | '#info' => array( |
| 773 | 773 | 'label' => 'User has role(s): administrator or moderator', |
| 774 | - 'label callback' => FALSE, |
|
| 774 | + 'label callback' => false, |
|
| 775 | 775 | 'arguments' => array( |
| 776 | 776 | 'user' => array( |
| 777 | 777 | 'type' => 'user', |
@@ -836,7 +836,7 @@ discard block |
||
| 836 | 836 | '#weight' => 0, |
| 837 | 837 | '#info' => array( |
| 838 | 838 | 'label' => 'PHP code: node content unchanged', |
| 839 | - 'label callback' => FALSE, |
|
| 839 | + 'label callback' => false, |
|
| 840 | 840 | 'module' => 'PHP', |
| 841 | 841 | 'eval input' => array( |
| 842 | 842 | '0' => 'code', |
@@ -863,7 +863,7 @@ discard block |
||
| 863 | 863 | '#weight' => 0, |
| 864 | 864 | '#info' => array( |
| 865 | 865 | 'label' => 'PHP code: node unlocked', |
| 866 | - 'label callback' => FALSE, |
|
| 866 | + 'label callback' => false, |
|
| 867 | 867 | 'module' => 'PHP', |
| 868 | 868 | 'eval input' => array( |
| 869 | 869 | '0' => 'code', |
@@ -952,7 +952,7 @@ discard block |
||
| 952 | 952 | '#name' => 'rules_condition_user_hasrole', |
| 953 | 953 | '#info' => array( |
| 954 | 954 | 'label' => 'User has role(s): administrator or moderator', |
| 955 | - 'label callback' => FALSE, |
|
| 955 | + 'label callback' => false, |
|
| 956 | 956 | 'arguments' => array( |
| 957 | 957 | 'user' => array( |
| 958 | 958 | 'type' => 'user', |
@@ -1017,7 +1017,7 @@ discard block |
||
| 1017 | 1017 | '#weight' => 0, |
| 1018 | 1018 | '#info' => array( |
| 1019 | 1019 | 'label' => 'PHP code: node content unchanged', |
| 1020 | - 'label callback' => FALSE, |
|
| 1020 | + 'label callback' => false, |
|
| 1021 | 1021 | 'module' => 'PHP', |
| 1022 | 1022 | 'eval input' => array( |
| 1023 | 1023 | '0' => 'code', |
@@ -1044,7 +1044,7 @@ discard block |
||
| 1044 | 1044 | '#weight' => 0, |
| 1045 | 1045 | '#info' => array( |
| 1046 | 1046 | 'label' => 'PHP code: node status changed to hidden', |
| 1047 | - 'label callback' => FALSE, |
|
| 1047 | + 'label callback' => false, |
|
| 1048 | 1048 | 'module' => 'PHP', |
| 1049 | 1049 | 'eval input' => array( |
| 1050 | 1050 | '0' => 'code', |
@@ -1133,7 +1133,7 @@ discard block |
||
| 1133 | 1133 | '#name' => 'rules_condition_user_hasrole', |
| 1134 | 1134 | '#info' => array( |
| 1135 | 1135 | 'label' => 'User has role(s): administrator or moderator', |
| 1136 | - 'label callback' => FALSE, |
|
| 1136 | + 'label callback' => false, |
|
| 1137 | 1137 | 'arguments' => array( |
| 1138 | 1138 | 'user' => array( |
| 1139 | 1139 | 'type' => 'user', |
@@ -1213,7 +1213,7 @@ discard block |
||
| 1213 | 1213 | '#name' => 'rules_condition_custom_php', |
| 1214 | 1214 | '#info' => array( |
| 1215 | 1215 | 'label' => 'PHP code: node content is unchanged', |
| 1216 | - 'label callback' => FALSE, |
|
| 1216 | + 'label callback' => false, |
|
| 1217 | 1217 | 'module' => 'PHP', |
| 1218 | 1218 | 'eval input' => array( |
| 1219 | 1219 | '0' => 'code', |
@@ -1240,7 +1240,7 @@ discard block |
||
| 1240 | 1240 | '#name' => 'rules_condition_custom_php', |
| 1241 | 1241 | '#info' => array( |
| 1242 | 1242 | 'label' => 'PHP code: node status changed to unhidden', |
| 1243 | - 'label callback' => FALSE, |
|
| 1243 | + 'label callback' => false, |
|
| 1244 | 1244 | 'module' => 'PHP', |
| 1245 | 1245 | 'eval input' => array( |
| 1246 | 1246 | '0' => 'code', |
@@ -1315,7 +1315,7 @@ discard block |
||
| 1315 | 1315 | '#name' => 'rules_condition_user_hasrole', |
| 1316 | 1316 | '#info' => array( |
| 1317 | 1317 | 'label' => 'User has role(s): administrator or moderator', |
| 1318 | - 'label callback' => FALSE, |
|
| 1318 | + 'label callback' => false, |
|
| 1319 | 1319 | 'arguments' => array( |
| 1320 | 1320 | 'user' => array( |
| 1321 | 1321 | 'type' => 'user', |
@@ -1379,7 +1379,7 @@ discard block |
||
| 1379 | 1379 | '#weight' => 0, |
| 1380 | 1380 | '#info' => array( |
| 1381 | 1381 | 'label' => 'PHP code: content changed', |
| 1382 | - 'label callback' => FALSE, |
|
| 1382 | + 'label callback' => false, |
|
| 1383 | 1383 | 'module' => 'PHP', |
| 1384 | 1384 | 'eval input' => array( |
| 1385 | 1385 | '0' => 'code', |
@@ -1469,7 +1469,7 @@ discard block |
||
| 1469 | 1469 | '#name' => 'rules_condition_user_hasrole', |
| 1470 | 1470 | '#info' => array( |
| 1471 | 1471 | 'label' => 'User has role(s): administrator or moderator', |
| 1472 | - 'label callback' => FALSE, |
|
| 1472 | + 'label callback' => false, |
|
| 1473 | 1473 | 'arguments' => array( |
| 1474 | 1474 | 'user' => array( |
| 1475 | 1475 | 'type' => 'user', |
@@ -1533,7 +1533,7 @@ discard block |
||
| 1533 | 1533 | '#weight' => 0, |
| 1534 | 1534 | '#info' => array( |
| 1535 | 1535 | 'label' => 'PHP code: node moved to new forum parent', |
| 1536 | - 'label callback' => FALSE, |
|
| 1536 | + 'label callback' => false, |
|
| 1537 | 1537 | 'module' => 'PHP', |
| 1538 | 1538 | 'eval input' => array( |
| 1539 | 1539 | '0' => 'code', |
@@ -1623,7 +1623,7 @@ discard block |
||
| 1623 | 1623 | '#name' => 'rules_condition_user_hasrole', |
| 1624 | 1624 | '#info' => array( |
| 1625 | 1625 | 'label' => 'User has role(s): administrator or moderator', |
| 1626 | - 'label callback' => FALSE, |
|
| 1626 | + 'label callback' => false, |
|
| 1627 | 1627 | 'arguments' => array( |
| 1628 | 1628 | 'user' => array( |
| 1629 | 1629 | 'type' => 'user', |
@@ -1687,7 +1687,7 @@ discard block |
||
| 1687 | 1687 | '#weight' => 0, |
| 1688 | 1688 | '#info' => array( |
| 1689 | 1689 | 'label' => 'PHP code: title changed', |
| 1690 | - 'label callback' => FALSE, |
|
| 1690 | + 'label callback' => false, |
|
| 1691 | 1691 | 'module' => 'PHP', |
| 1692 | 1692 | 'eval input' => array( |
| 1693 | 1693 | '0' => 'code', |
@@ -1816,7 +1816,7 @@ discard block |
||
| 1816 | 1816 | '#weight' => 0, |
| 1817 | 1817 | '#info' => array( |
| 1818 | 1818 | 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
| 1819 | - 'label callback' => FALSE, |
|
| 1819 | + 'label callback' => false, |
|
| 1820 | 1820 | 'arguments' => array( |
| 1821 | 1821 | 'user1' => array( |
| 1822 | 1822 | 'type' => 'user', |
@@ -1894,7 +1894,7 @@ discard block |
||
| 1894 | 1894 | '#negate' => 1, |
| 1895 | 1895 | '#info' => array( |
| 1896 | 1896 | 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
| 1897 | - 'label callback' => FALSE, |
|
| 1897 | + 'label callback' => false, |
|
| 1898 | 1898 | 'arguments' => array( |
| 1899 | 1899 | 'user1' => array( |
| 1900 | 1900 | 'type' => 'user', |
@@ -1978,7 +1978,7 @@ discard block |
||
| 1978 | 1978 | '#name' => 'rules_condition_user_comparison', |
| 1979 | 1979 | '#info' => array( |
| 1980 | 1980 | 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
| 1981 | - 'label callback' => FALSE, |
|
| 1981 | + 'label callback' => false, |
|
| 1982 | 1982 | 'arguments' => array( |
| 1983 | 1983 | 'user1' => array( |
| 1984 | 1984 | 'type' => 'user', |
@@ -4,20 +4,20 @@ discard block |
||
| 4 | 4 | * Implementation of hook_default_wysiwyg(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_default_wysiwyg() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - $wysiwyg = new stdClass; |
|
| 10 | - $wysiwyg->disabled = FALSE; /* Edit this to true to make a default wysiwyg disabled initially */ |
|
| 11 | - $wysiwyg->api_version = 2; |
|
| 12 | - $wysiwyg->editor = 'tinymce'; |
|
| 13 | - $wysiwyg->settings = array( |
|
| 9 | + $wysiwyg = new stdClass; |
|
| 10 | + $wysiwyg->disabled = FALSE; /* Edit this to true to make a default wysiwyg disabled initially */ |
|
| 11 | + $wysiwyg->api_version = 2; |
|
| 12 | + $wysiwyg->editor = 'tinymce'; |
|
| 13 | + $wysiwyg->settings = array( |
|
| 14 | 14 | 'default' => 1, |
| 15 | 15 | 'user_choose' => 1, |
| 16 | 16 | 'show_toggle' => 1, |
| 17 | 17 | 'theme' => 'advanced', |
| 18 | 18 | 'language' => 'en', |
| 19 | 19 | 'buttons' => array( |
| 20 | - 'default' => array( |
|
| 20 | + 'default' => array( |
|
| 21 | 21 | 'bold' => 1, |
| 22 | 22 | 'italic' => 1, |
| 23 | 23 | 'underline' => 1, |
@@ -40,25 +40,25 @@ discard block |
||
| 40 | 40 | 'hr' => 1, |
| 41 | 41 | 'removeformat' => 1, |
| 42 | 42 | 'charmap' => 1, |
| 43 | - ), |
|
| 44 | - 'advimage' => array( |
|
| 43 | + ), |
|
| 44 | + 'advimage' => array( |
|
| 45 | 45 | 'advimage' => 1, |
| 46 | - ), |
|
| 47 | - 'emotions' => array( |
|
| 46 | + ), |
|
| 47 | + 'emotions' => array( |
|
| 48 | 48 | 'emotions' => 1, |
| 49 | - ), |
|
| 50 | - 'font' => array( |
|
| 49 | + ), |
|
| 50 | + 'font' => array( |
|
| 51 | 51 | 'formatselect' => 1, |
| 52 | - ), |
|
| 53 | - 'paste' => array( |
|
| 52 | + ), |
|
| 53 | + 'paste' => array( |
|
| 54 | 54 | 'pastetext' => 1, |
| 55 | - ), |
|
| 56 | - 'media' => array( |
|
| 55 | + ), |
|
| 56 | + 'media' => array( |
|
| 57 | 57 | 'media' => 1, |
| 58 | - ), |
|
| 59 | - 'drupal' => array( |
|
| 58 | + ), |
|
| 59 | + 'drupal' => array( |
|
| 60 | 60 | 'linebreaks' => 1, |
| 61 | - ), |
|
| 61 | + ), |
|
| 62 | 62 | ), |
| 63 | 63 | 'toolbar_loc' => 'top', |
| 64 | 64 | 'toolbar_align' => 'left', |
@@ -76,9 +76,9 @@ discard block |
||
| 76 | 76 | 'css_classes' => 'Image with caption=standalone-image |
| 77 | 77 | Float left with caption=image-left |
| 78 | 78 | Float right with caption=image-right', |
| 79 | - ); |
|
| 80 | - $wysiwyg->machine = 'rich_text'; |
|
| 81 | - $export['rich_text'] = $wysiwyg; |
|
| 79 | + ); |
|
| 80 | + $wysiwyg->machine = 'rich_text'; |
|
| 81 | + $export['rich_text'] = $wysiwyg; |
|
| 82 | 82 | |
| 83 | - return $export; |
|
| 83 | + return $export; |
|
| 84 | 84 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | $export = array(); |
| 8 | 8 | |
| 9 | 9 | $wysiwyg = new stdClass; |
| 10 | - $wysiwyg->disabled = FALSE; /* Edit this to true to make a default wysiwyg disabled initially */ |
|
| 10 | + $wysiwyg->disabled = false; /* Edit this to true to make a default wysiwyg disabled initially */ |
|
| 11 | 11 | $wysiwyg->api_version = 2; |
| 12 | 12 | $wysiwyg->editor = 'tinymce'; |
| 13 | 13 | $wysiwyg->settings = array( |
@@ -4,12 +4,12 @@ discard block |
||
| 4 | 4 | * Implementation of hook_default_fe_block_settings(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_default_fe_block_settings() { |
| 7 | - $export = array(); |
|
| 7 | + $export = array(); |
|
| 8 | 8 | |
| 9 | - // boinc |
|
| 10 | - $theme = array(); |
|
| 9 | + // boinc |
|
| 10 | + $theme = array(); |
|
| 11 | 11 | |
| 12 | - $theme['menu_block-1'] = array( |
|
| 12 | + $theme['menu_block-1'] = array( |
|
| 13 | 13 | 'module' => 'menu_block', |
| 14 | 14 | 'delta' => '1', |
| 15 | 15 | 'theme' => 'boinc', |
@@ -22,14 +22,14 @@ discard block |
||
| 22 | 22 | 'pages' => '', |
| 23 | 23 | 'title' => '<none>', |
| 24 | 24 | 'cache' => '-1', |
| 25 | - ); |
|
| 25 | + ); |
|
| 26 | 26 | |
| 27 | - $export['boinc'] = $theme; |
|
| 27 | + $export['boinc'] = $theme; |
|
| 28 | 28 | |
| 29 | - // einstein |
|
| 30 | - $theme = array(); |
|
| 29 | + // einstein |
|
| 30 | + $theme = array(); |
|
| 31 | 31 | |
| 32 | - $theme['menu_block-1'] = array( |
|
| 32 | + $theme['menu_block-1'] = array( |
|
| 33 | 33 | 'module' => 'menu_block', |
| 34 | 34 | 'delta' => '1', |
| 35 | 35 | 'theme' => 'einstein', |
@@ -42,14 +42,14 @@ discard block |
||
| 42 | 42 | 'pages' => '', |
| 43 | 43 | 'title' => '<none>', |
| 44 | 44 | 'cache' => '-1', |
| 45 | - ); |
|
| 45 | + ); |
|
| 46 | 46 | |
| 47 | - $export['einstein'] = $theme; |
|
| 47 | + $export['einstein'] = $theme; |
|
| 48 | 48 | |
| 49 | - // garland |
|
| 50 | - $theme = array(); |
|
| 49 | + // garland |
|
| 50 | + $theme = array(); |
|
| 51 | 51 | |
| 52 | - $theme['menu_block-1'] = array( |
|
| 52 | + $theme['menu_block-1'] = array( |
|
| 53 | 53 | 'module' => 'menu_block', |
| 54 | 54 | 'delta' => '1', |
| 55 | 55 | 'theme' => 'garland', |
@@ -62,16 +62,16 @@ discard block |
||
| 62 | 62 | 'pages' => '', |
| 63 | 63 | 'title' => '<none>', |
| 64 | 64 | 'cache' => '-1', |
| 65 | - ); |
|
| 65 | + ); |
|
| 66 | 66 | |
| 67 | - $export['garland'] = $theme; |
|
| 67 | + $export['garland'] = $theme; |
|
| 68 | 68 | |
| 69 | - $theme_default = variable_get('theme_default', 'garland'); |
|
| 70 | - $themes = list_themes(); |
|
| 71 | - foreach ($export as $theme_key => $settings) { |
|
| 69 | + $theme_default = variable_get('theme_default', 'garland'); |
|
| 70 | + $themes = list_themes(); |
|
| 71 | + foreach ($export as $theme_key => $settings) { |
|
| 72 | 72 | if ($theme_key != $theme_default && empty($themes[$theme_key]->status)) { |
| 73 | - unset($export[$theme_key]); |
|
| 73 | + unset($export[$theme_key]); |
|
| 74 | 74 | } |
| 75 | - } |
|
| 76 | - return $export; |
|
| 75 | + } |
|
| 76 | + return $export; |
|
| 77 | 77 | } |
@@ -6,16 +6,16 @@ |
||
| 6 | 6 | * Make some changes to configurations after the feature has been enabled |
| 7 | 7 | */ |
| 8 | 8 | function boinc_standard_enable() { |
| 9 | - // Ensure that the default theme is enabled. A bit ridiculous, but it is |
|
| 10 | - // possible for this not to be the case. |
|
| 11 | - $default_theme = variable_get('theme_default', 'boinc'); |
|
| 12 | - // If default theme is garland, this is because the boinc_standard feature |
|
| 13 | - // has not been reverted yet. Work around this by forcing it to default to |
|
| 14 | - // the boinc theme |
|
| 15 | - if ($default_theme == 'garland') { |
|
| 9 | + // Ensure that the default theme is enabled. A bit ridiculous, but it is |
|
| 10 | + // possible for this not to be the case. |
|
| 11 | + $default_theme = variable_get('theme_default', 'boinc'); |
|
| 12 | + // If default theme is garland, this is because the boinc_standard feature |
|
| 13 | + // has not been reverted yet. Work around this by forcing it to default to |
|
| 14 | + // the boinc theme |
|
| 15 | + if ($default_theme == 'garland') { |
|
| 16 | 16 | $default_theme = 'boinc'; |
| 17 | 17 | variable_set('theme_default', $default_theme); |
| 18 | - } |
|
| 19 | - $default_theme_enabled = db_query("UPDATE {system} SET status = 1 |
|
| 18 | + } |
|
| 19 | + $default_theme_enabled = db_query("UPDATE {system} SET status = 1 |
|
| 20 | 20 | WHERE type = 'theme' and name = '%s'", $default_theme); |
| 21 | 21 | } |
@@ -4,14 +4,14 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_server_migration_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 = 'boincimport_input_format'; |
|
| 13 | - $strongarm->value = '4'; |
|
| 14 | - $export['boincimport_input_format'] = $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 = 'boincimport_input_format'; |
|
| 13 | + $strongarm->value = '4'; |
|
| 14 | + $export['boincimport_input_format'] = $strongarm; |
|
| 15 | 15 | |
| 16 | - return $export; |
|
| 16 | + return $export; |
|
| 17 | 17 | } |
@@ -7,7 +7,7 @@ |
||
| 7 | 7 | $export = array(); |
| 8 | 8 | |
| 9 | 9 | $strongarm = new stdClass; |
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 10 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | 11 | $strongarm->api_version = 1; |
| 12 | 12 | $strongarm->name = 'boincimport_input_format'; |
| 13 | 13 | $strongarm->value = '4'; |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_server_migration_ctools_plugin_api() { |
| 7 | - list($module, $api) = func_get_args(); |
|
| 8 | - if ($module == "strongarm" && $api == "strongarm") { |
|
| 7 | + list($module, $api) = func_get_args(); |
|
| 8 | + if ($module == "strongarm" && $api == "strongarm") { |
|
| 9 | 9 | return array("version" => 1); |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | } |
@@ -4,55 +4,55 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function global_search_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 = 'search404_page_title'; |
|
| 13 | - $strongarm->value = 'Page not found'; |
|
| 14 | - $export['search404_page_title'] = $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 = 'search404_page_title'; |
|
| 13 | + $strongarm->value = 'Page not found'; |
|
| 14 | + $export['search404_page_title'] = $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 = 'search_by_page_settings'; |
|
| 20 | - $strongarm->value = array( |
|
| 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 = 'search_by_page_settings'; |
|
| 20 | + $strongarm->value = array( |
|
| 21 | 21 | 1 => array( |
| 22 | - 'environment_name' => 'general', |
|
| 23 | - 'page_title' => '', |
|
| 24 | - 'block_title' => 'Search', |
|
| 25 | - 'field_label' => 'Search', |
|
| 26 | - 'button_label' => 'Search', |
|
| 27 | - 'page_path' => 'find', |
|
| 28 | - 'exclude_tags' => '', |
|
| 29 | - 'sbp_nodes_types_indexed' => array( |
|
| 22 | + 'environment_name' => 'general', |
|
| 23 | + 'page_title' => '', |
|
| 24 | + 'block_title' => 'Search', |
|
| 25 | + 'field_label' => 'Search', |
|
| 26 | + 'button_label' => 'Search', |
|
| 27 | + 'page_path' => 'find', |
|
| 28 | + 'exclude_tags' => '', |
|
| 29 | + 'sbp_nodes_types_indexed' => array( |
|
| 30 | 30 | 'forum' => 'forum', |
| 31 | 31 | 'page' => 'page', |
| 32 | 32 | 'panel' => 'panel', |
| 33 | 33 | 'profile' => 'profile', |
| 34 | 34 | 'story' => 'story', |
| 35 | - ), |
|
| 36 | - 'sbp_nodes_display_type' => 'excerpts', |
|
| 37 | - 'sbp_nodes_role' => '1', |
|
| 38 | - 'sbp_nodes_min_time' => '1', |
|
| 39 | - 'sbp_nodes_max_time' => '0', |
|
| 40 | - 'sbp_paths_min_time' => '1', |
|
| 41 | - 'sbp_paths_max_time' => '0', |
|
| 42 | - 'sbp_users_roles_indexed' => array( |
|
| 35 | + ), |
|
| 36 | + 'sbp_nodes_display_type' => 'excerpts', |
|
| 37 | + 'sbp_nodes_role' => '1', |
|
| 38 | + 'sbp_nodes_min_time' => '1', |
|
| 39 | + 'sbp_nodes_max_time' => '0', |
|
| 40 | + 'sbp_paths_min_time' => '1', |
|
| 41 | + 'sbp_paths_max_time' => '0', |
|
| 42 | + 'sbp_users_roles_indexed' => array( |
|
| 43 | 43 | 2 => 2, |
| 44 | 44 | 4 => 0, |
| 45 | 45 | 5 => 0, |
| 46 | 46 | 3 => 0, |
| 47 | 47 | 6 => 0, |
| 48 | - ), |
|
| 49 | - 'sbp_users_role' => '1', |
|
| 50 | - 'sbp_users_min_time' => '1', |
|
| 51 | - 'sbp_users_max_time' => '0', |
|
| 52 | - 'op' => 'Save configuration', |
|
| 48 | + ), |
|
| 49 | + 'sbp_users_role' => '1', |
|
| 50 | + 'sbp_users_min_time' => '1', |
|
| 51 | + 'sbp_users_max_time' => '0', |
|
| 52 | + 'op' => 'Save configuration', |
|
| 53 | 53 | ), |
| 54 | - ); |
|
| 55 | - $export['search_by_page_settings'] = $strongarm; |
|
| 54 | + ); |
|
| 55 | + $export['search_by_page_settings'] = $strongarm; |
|
| 56 | 56 | |
| 57 | - return $export; |
|
| 57 | + return $export; |
|
| 58 | 58 | } |
@@ -7,14 +7,14 @@ |
||
| 7 | 7 | $export = array(); |
| 8 | 8 | |
| 9 | 9 | $strongarm = new stdClass; |
| 10 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 10 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 11 | 11 | $strongarm->api_version = 1; |
| 12 | 12 | $strongarm->name = 'search404_page_title'; |
| 13 | 13 | $strongarm->value = 'Page not found'; |
| 14 | 14 | $export['search404_page_title'] = $strongarm; |
| 15 | 15 | |
| 16 | 16 | $strongarm = new stdClass; |
| 17 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 17 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 18 | 18 | $strongarm->api_version = 1; |
| 19 | 19 | $strongarm->name = 'search_by_page_settings'; |
| 20 | 20 | $strongarm->value = array( |
@@ -4,33 +4,33 @@ |
||
| 4 | 4 | * Implementation of hook_user_default_permissions(). |
| 5 | 5 | */ |
| 6 | 6 | function global_search_user_default_permissions() { |
| 7 | - $permissions = array(); |
|
| 7 | + $permissions = array(); |
|
| 8 | 8 | |
| 9 | - // Exported permission: administer search |
|
| 10 | - $permissions['administer search'] = array( |
|
| 9 | + // Exported permission: administer search |
|
| 10 | + $permissions['administer search'] = array( |
|
| 11 | 11 | 'name' => 'administer search', |
| 12 | 12 | 'roles' => array( |
| 13 | - '0' => 'administrator', |
|
| 13 | + '0' => 'administrator', |
|
| 14 | 14 | ), |
| 15 | - ); |
|
| 15 | + ); |
|
| 16 | 16 | |
| 17 | - // Exported permission: search content |
|
| 18 | - $permissions['search content'] = array( |
|
| 17 | + // Exported permission: search content |
|
| 18 | + $permissions['search content'] = array( |
|
| 19 | 19 | 'name' => 'search content', |
| 20 | 20 | 'roles' => array( |
| 21 | - '0' => 'anonymous user', |
|
| 22 | - '1' => 'authenticated user', |
|
| 21 | + '0' => 'anonymous user', |
|
| 22 | + '1' => 'authenticated user', |
|
| 23 | 23 | ), |
| 24 | - ); |
|
| 24 | + ); |
|
| 25 | 25 | |
| 26 | - // Exported permission: use advanced search |
|
| 27 | - $permissions['use advanced search'] = array( |
|
| 26 | + // Exported permission: use advanced search |
|
| 27 | + $permissions['use advanced search'] = array( |
|
| 28 | 28 | 'name' => 'use advanced search', |
| 29 | 29 | 'roles' => array( |
| 30 | - '0' => 'anonymous user', |
|
| 31 | - '1' => 'authenticated user', |
|
| 30 | + '0' => 'anonymous user', |
|
| 31 | + '1' => 'authenticated user', |
|
| 32 | 32 | ), |
| 33 | - ); |
|
| 33 | + ); |
|
| 34 | 34 | |
| 35 | - return $permissions; |
|
| 35 | + return $permissions; |
|
| 36 | 36 | } |
@@ -4,8 +4,8 @@ |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function global_search_ctools_plugin_api() { |
| 7 | - list($module, $api) = func_get_args(); |
|
| 8 | - if ($module == "strongarm" && $api == "strongarm") { |
|
| 7 | + list($module, $api) = func_get_args(); |
|
| 8 | + if ($module == "strongarm" && $api == "strongarm") { |
|
| 9 | 9 | return array("version" => 1); |
| 10 | - } |
|
| 10 | + } |
|
| 11 | 11 | } |