@@ -4,8 +4,8 @@ |
||
| 4 | 4 | * Implementation of hook_ctools_plugin_api(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_solr_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 | } |
@@ -4,31 +4,31 @@ |
||
| 4 | 4 | * Implementation of hook_role_export_defaults(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_role_export_defaults() { |
| 7 | - $roles = array(); |
|
| 7 | + $roles = array(); |
|
| 8 | 8 | |
| 9 | - $roles['administrator'] = array( |
|
| 9 | + $roles['administrator'] = array( |
|
| 10 | 10 | 'rid' => '3519698132', |
| 11 | 11 | 'name' => 'administrator', |
| 12 | 12 | 'machine_name' => 'administrator', |
| 13 | - ); |
|
| 13 | + ); |
|
| 14 | 14 | |
| 15 | - $roles['community_member'] = array( |
|
| 15 | + $roles['community_member'] = array( |
|
| 16 | 16 | 'rid' => '1110965548', |
| 17 | 17 | 'name' => 'community member', |
| 18 | 18 | 'machine_name' => 'community_member', |
| 19 | - ); |
|
| 19 | + ); |
|
| 20 | 20 | |
| 21 | - $roles['content_editor'] = array( |
|
| 21 | + $roles['content_editor'] = array( |
|
| 22 | 22 | 'rid' => '2938987599', |
| 23 | 23 | 'name' => 'content editor', |
| 24 | 24 | 'machine_name' => 'content_editor', |
| 25 | - ); |
|
| 25 | + ); |
|
| 26 | 26 | |
| 27 | - $roles['verified_contributor'] = array( |
|
| 27 | + $roles['verified_contributor'] = array( |
|
| 28 | 28 | 'rid' => '933038561', |
| 29 | 29 | 'name' => 'verified contributor', |
| 30 | 30 | 'machine_name' => 'verified_contributor', |
| 31 | - ); |
|
| 31 | + ); |
|
| 32 | 32 | |
| 33 | - return $roles; |
|
| 33 | + return $roles; |
|
| 34 | 34 | } |
@@ -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 1 SPAM". |
|
| 31 | - $flags['abuse_comment_1'] = array( |
|
| 29 | + $flags = array(); |
|
| 30 | + // Exported flag: "Comment Abuse 1 SPAM". |
|
| 31 | + $flags['abuse_comment_1'] = array( |
|
| 32 | 32 | 'content_type' => 'comment', |
| 33 | 33 | 'title' => 'Comment Abuse 1 SPAM', |
| 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' => 'Flag as SPAM', |
| 41 | 41 | 'flag_long' => 'Flag this comment as SPAM.', |
@@ -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' => 0, |
| 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: "Comment Abuse 2 LINK". |
|
| 66 | - $flags['abuse_comment_2'] = array( |
|
| 64 | + ); |
|
| 65 | + // Exported flag: "Comment Abuse 2 LINK". |
|
| 66 | + $flags['abuse_comment_2'] = array( |
|
| 67 | 67 | 'content_type' => 'comment', |
| 68 | 68 | 'title' => 'Comment Abuse 2 LINK', |
| 69 | 69 | 'global' => FALSE, |
| 70 | 70 | 'types' => array( |
| 71 | - '0' => 'forum', |
|
| 72 | - '1' => 'news', |
|
| 73 | - '2' => 'team_forum', |
|
| 71 | + '0' => 'forum', |
|
| 72 | + '1' => 'news', |
|
| 73 | + '2' => 'team_forum', |
|
| 74 | 74 | ), |
| 75 | 75 | 'flag_short' => 'Flag as abusive link', |
| 76 | 76 | 'flag_long' => 'Flag this comment with abusive link.', |
@@ -81,31 +81,31 @@ 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 | 'access_author' => '', |
| 93 | 93 | 'show_on_comment' => 0, |
| 94 | 94 | 'module' => 'boinc_standard', |
| 95 | 95 | 'locked' => array( |
| 96 | - '0' => 'name', |
|
| 96 | + '0' => 'name', |
|
| 97 | 97 | ), |
| 98 | 98 | 'api_version' => 2, |
| 99 | - ); |
|
| 100 | - // Exported flag: "Comment Abuse 3 Hostile". |
|
| 101 | - $flags['abuse_comment_3'] = array( |
|
| 99 | + ); |
|
| 100 | + // Exported flag: "Comment Abuse 3 Hostile". |
|
| 101 | + $flags['abuse_comment_3'] = array( |
|
| 102 | 102 | 'content_type' => 'comment', |
| 103 | 103 | 'title' => 'Comment Abuse 3 Hostile', |
| 104 | 104 | 'global' => FALSE, |
| 105 | 105 | 'types' => array( |
| 106 | - '0' => 'forum', |
|
| 107 | - '1' => 'news', |
|
| 108 | - '2' => 'team_forum', |
|
| 106 | + '0' => 'forum', |
|
| 107 | + '1' => 'news', |
|
| 108 | + '2' => 'team_forum', |
|
| 109 | 109 | ), |
| 110 | 110 | 'flag_short' => 'Flag as hostile', |
| 111 | 111 | 'flag_long' => 'Flag this comment as hostile.', |
@@ -116,31 +116,31 @@ discard block |
||
| 116 | 116 | 'unflag_denied_text' => '', |
| 117 | 117 | 'link_type' => 'toggle', |
| 118 | 118 | 'roles' => array( |
| 119 | - 'flag' => array( |
|
| 119 | + 'flag' => array( |
|
| 120 | 120 | '0' => 2, |
| 121 | - ), |
|
| 122 | - 'unflag' => array( |
|
| 121 | + ), |
|
| 122 | + 'unflag' => array( |
|
| 123 | 123 | '0' => 2, |
| 124 | - ), |
|
| 124 | + ), |
|
| 125 | 125 | ), |
| 126 | 126 | 'weight' => 0, |
| 127 | 127 | 'access_author' => '', |
| 128 | 128 | 'show_on_comment' => 0, |
| 129 | 129 | 'module' => 'boinc_standard', |
| 130 | 130 | 'locked' => array( |
| 131 | - '0' => 'name', |
|
| 131 | + '0' => 'name', |
|
| 132 | 132 | ), |
| 133 | 133 | 'api_version' => 2, |
| 134 | - ); |
|
| 135 | - // Exported flag: "Comment Abuse 4 Not Kid Friendly". |
|
| 136 | - $flags['abuse_comment_4'] = array( |
|
| 134 | + ); |
|
| 135 | + // Exported flag: "Comment Abuse 4 Not Kid Friendly". |
|
| 136 | + $flags['abuse_comment_4'] = array( |
|
| 137 | 137 | 'content_type' => 'comment', |
| 138 | 138 | 'title' => 'Comment Abuse 4 Not Kid Friendly', |
| 139 | 139 | 'global' => FALSE, |
| 140 | 140 | 'types' => array( |
| 141 | - '0' => 'forum', |
|
| 142 | - '1' => 'news', |
|
| 143 | - '2' => 'team_forum', |
|
| 141 | + '0' => 'forum', |
|
| 142 | + '1' => 'news', |
|
| 143 | + '2' => 'team_forum', |
|
| 144 | 144 | ), |
| 145 | 145 | 'flag_short' => 'Flag as not kid-friendly', |
| 146 | 146 | 'flag_long' => 'Flag this comment as not kid-friendly.', |
@@ -151,31 +151,31 @@ discard block |
||
| 151 | 151 | 'unflag_denied_text' => '', |
| 152 | 152 | 'link_type' => 'toggle', |
| 153 | 153 | 'roles' => array( |
| 154 | - 'flag' => array( |
|
| 154 | + 'flag' => array( |
|
| 155 | 155 | '0' => 2, |
| 156 | - ), |
|
| 157 | - 'unflag' => array( |
|
| 156 | + ), |
|
| 157 | + 'unflag' => array( |
|
| 158 | 158 | '0' => 2, |
| 159 | - ), |
|
| 159 | + ), |
|
| 160 | 160 | ), |
| 161 | 161 | 'weight' => 0, |
| 162 | 162 | 'access_author' => '', |
| 163 | 163 | 'show_on_comment' => 0, |
| 164 | 164 | 'module' => 'boinc_standard', |
| 165 | 165 | 'locked' => array( |
| 166 | - '0' => 'name', |
|
| 166 | + '0' => 'name', |
|
| 167 | 167 | ), |
| 168 | 168 | 'api_version' => 2, |
| 169 | - ); |
|
| 170 | - // Exported flag: "Comment Abuse 5 Other". |
|
| 171 | - $flags['abuse_comment_5'] = array( |
|
| 169 | + ); |
|
| 170 | + // Exported flag: "Comment Abuse 5 Other". |
|
| 171 | + $flags['abuse_comment_5'] = array( |
|
| 172 | 172 | 'content_type' => 'comment', |
| 173 | 173 | 'title' => 'Comment Abuse 5 Other', |
| 174 | 174 | 'global' => FALSE, |
| 175 | 175 | 'types' => array( |
| 176 | - '0' => 'forum', |
|
| 177 | - '1' => 'news', |
|
| 178 | - '2' => 'team_forum', |
|
| 176 | + '0' => 'forum', |
|
| 177 | + '1' => 'news', |
|
| 178 | + '2' => 'team_forum', |
|
| 179 | 179 | ), |
| 180 | 180 | 'flag_short' => 'Flag as other', |
| 181 | 181 | 'flag_long' => 'Flag this comment - other reason', |
@@ -186,31 +186,31 @@ discard block |
||
| 186 | 186 | 'unflag_denied_text' => '', |
| 187 | 187 | 'link_type' => 'toggle', |
| 188 | 188 | 'roles' => array( |
| 189 | - 'flag' => array( |
|
| 189 | + 'flag' => array( |
|
| 190 | 190 | '0' => 2, |
| 191 | - ), |
|
| 192 | - 'unflag' => array( |
|
| 191 | + ), |
|
| 192 | + 'unflag' => array( |
|
| 193 | 193 | '0' => 2, |
| 194 | - ), |
|
| 194 | + ), |
|
| 195 | 195 | ), |
| 196 | 196 | 'weight' => 0, |
| 197 | 197 | 'access_author' => '', |
| 198 | 198 | 'show_on_comment' => 0, |
| 199 | 199 | 'module' => 'boinc_standard', |
| 200 | 200 | 'locked' => array( |
| 201 | - '0' => 'name', |
|
| 201 | + '0' => 'name', |
|
| 202 | 202 | ), |
| 203 | 203 | 'api_version' => 2, |
| 204 | - ); |
|
| 205 | - // Exported flag: "Comment Abuse meta". |
|
| 206 | - $flags['abuse_comment_meta'] = array( |
|
| 204 | + ); |
|
| 205 | + // Exported flag: "Comment Abuse meta". |
|
| 206 | + $flags['abuse_comment_meta'] = array( |
|
| 207 | 207 | 'content_type' => 'comment', |
| 208 | 208 | 'title' => 'Comment Abuse meta', |
| 209 | 209 | 'global' => '0', |
| 210 | 210 | 'types' => array( |
| 211 | - '0' => 'forum', |
|
| 212 | - '1' => 'news', |
|
| 213 | - '2' => 'team_forum', |
|
| 211 | + '0' => 'forum', |
|
| 212 | + '1' => 'news', |
|
| 213 | + '2' => 'team_forum', |
|
| 214 | 214 | ), |
| 215 | 215 | 'flag_short' => 'Report', |
| 216 | 216 | 'flag_long' => 'Report comment.', |
@@ -221,31 +221,31 @@ discard block |
||
| 221 | 221 | 'unflag_denied_text' => '', |
| 222 | 222 | 'link_type' => 'toggle', |
| 223 | 223 | 'roles' => array( |
| 224 | - 'flag' => array( |
|
| 224 | + 'flag' => array( |
|
| 225 | 225 | '0' => 2, |
| 226 | - ), |
|
| 227 | - 'unflag' => array( |
|
| 226 | + ), |
|
| 227 | + 'unflag' => array( |
|
| 228 | 228 | '0' => 2, |
| 229 | - ), |
|
| 229 | + ), |
|
| 230 | 230 | ), |
| 231 | 231 | 'weight' => 0, |
| 232 | 232 | 'access_author' => '', |
| 233 | 233 | 'show_on_comment' => 1, |
| 234 | 234 | 'module' => 'boinc_standard', |
| 235 | 235 | 'locked' => array( |
| 236 | - '0' => 'name', |
|
| 236 | + '0' => 'name', |
|
| 237 | 237 | ), |
| 238 | 238 | 'api_version' => 2, |
| 239 | - ); |
|
| 240 | - // Exported flag: "Node Abuse 1 SPAM". |
|
| 241 | - $flags['abuse_node_1'] = array( |
|
| 239 | + ); |
|
| 240 | + // Exported flag: "Node Abuse 1 SPAM". |
|
| 241 | + $flags['abuse_node_1'] = array( |
|
| 242 | 242 | 'content_type' => 'node', |
| 243 | 243 | 'title' => 'Node Abuse 1 SPAM', |
| 244 | 244 | 'global' => FALSE, |
| 245 | 245 | 'types' => array( |
| 246 | - '0' => 'forum', |
|
| 247 | - '1' => 'news', |
|
| 248 | - '2' => 'team_forum', |
|
| 246 | + '0' => 'forum', |
|
| 247 | + '1' => 'news', |
|
| 248 | + '2' => 'team_forum', |
|
| 249 | 249 | ), |
| 250 | 250 | 'flag_short' => 'Flag as SPAM', |
| 251 | 251 | 'flag_long' => 'Flag this content SPAM.', |
@@ -256,12 +256,12 @@ discard block |
||
| 256 | 256 | 'unflag_denied_text' => '', |
| 257 | 257 | 'link_type' => 'toggle', |
| 258 | 258 | 'roles' => array( |
| 259 | - 'flag' => array( |
|
| 259 | + 'flag' => array( |
|
| 260 | 260 | '0' => 2, |
| 261 | - ), |
|
| 262 | - 'unflag' => array( |
|
| 261 | + ), |
|
| 262 | + 'unflag' => array( |
|
| 263 | 263 | '0' => 2, |
| 264 | - ), |
|
| 264 | + ), |
|
| 265 | 265 | ), |
| 266 | 266 | 'weight' => 0, |
| 267 | 267 | 'show_on_page' => 0, |
@@ -271,19 +271,19 @@ discard block |
||
| 271 | 271 | 'i18n' => '0', |
| 272 | 272 | 'module' => 'boinc_standard', |
| 273 | 273 | 'locked' => array( |
| 274 | - '0' => 'name', |
|
| 274 | + '0' => 'name', |
|
| 275 | 275 | ), |
| 276 | 276 | 'api_version' => 2, |
| 277 | - ); |
|
| 278 | - // Exported flag: "Node Abuse 2 Link". |
|
| 279 | - $flags['abuse_node_2'] = array( |
|
| 277 | + ); |
|
| 278 | + // Exported flag: "Node Abuse 2 Link". |
|
| 279 | + $flags['abuse_node_2'] = array( |
|
| 280 | 280 | 'content_type' => 'node', |
| 281 | 281 | 'title' => 'Node Abuse 2 Link', |
| 282 | 282 | 'global' => FALSE, |
| 283 | 283 | 'types' => array( |
| 284 | - '0' => 'forum', |
|
| 285 | - '1' => 'news', |
|
| 286 | - '2' => 'team_forum', |
|
| 284 | + '0' => 'forum', |
|
| 285 | + '1' => 'news', |
|
| 286 | + '2' => 'team_forum', |
|
| 287 | 287 | ), |
| 288 | 288 | 'flag_short' => 'Report as abusive link', |
| 289 | 289 | 'flag_long' => 'Flag this content as abusive link.', |
@@ -294,12 +294,12 @@ discard block |
||
| 294 | 294 | 'unflag_denied_text' => '', |
| 295 | 295 | 'link_type' => 'toggle', |
| 296 | 296 | 'roles' => array( |
| 297 | - 'flag' => array( |
|
| 297 | + 'flag' => array( |
|
| 298 | 298 | '0' => 2, |
| 299 | - ), |
|
| 300 | - 'unflag' => array( |
|
| 299 | + ), |
|
| 300 | + 'unflag' => array( |
|
| 301 | 301 | '0' => 2, |
| 302 | - ), |
|
| 302 | + ), |
|
| 303 | 303 | ), |
| 304 | 304 | 'weight' => 0, |
| 305 | 305 | 'show_on_page' => 0, |
@@ -309,19 +309,19 @@ discard block |
||
| 309 | 309 | 'i18n' => '0', |
| 310 | 310 | 'module' => 'boinc_standard', |
| 311 | 311 | 'locked' => array( |
| 312 | - '0' => 'name', |
|
| 312 | + '0' => 'name', |
|
| 313 | 313 | ), |
| 314 | 314 | 'api_version' => 2, |
| 315 | - ); |
|
| 316 | - // Exported flag: "Node Abuse 3 Hostile". |
|
| 317 | - $flags['abuse_node_3'] = array( |
|
| 315 | + ); |
|
| 316 | + // Exported flag: "Node Abuse 3 Hostile". |
|
| 317 | + $flags['abuse_node_3'] = array( |
|
| 318 | 318 | 'content_type' => 'node', |
| 319 | 319 | 'title' => 'Node Abuse 3 Hostile', |
| 320 | 320 | 'global' => FALSE, |
| 321 | 321 | 'types' => array( |
| 322 | - '0' => 'forum', |
|
| 323 | - '1' => 'news', |
|
| 324 | - '2' => 'team_forum', |
|
| 322 | + '0' => 'forum', |
|
| 323 | + '1' => 'news', |
|
| 324 | + '2' => 'team_forum', |
|
| 325 | 325 | ), |
| 326 | 326 | 'flag_short' => 'Flag as hostile', |
| 327 | 327 | 'flag_long' => 'Flag this content as hostile.', |
@@ -332,12 +332,12 @@ discard block |
||
| 332 | 332 | 'unflag_denied_text' => '', |
| 333 | 333 | 'link_type' => 'toggle', |
| 334 | 334 | 'roles' => array( |
| 335 | - 'flag' => array( |
|
| 335 | + 'flag' => array( |
|
| 336 | 336 | '0' => 2, |
| 337 | - ), |
|
| 338 | - 'unflag' => array( |
|
| 337 | + ), |
|
| 338 | + 'unflag' => array( |
|
| 339 | 339 | '0' => 2, |
| 340 | - ), |
|
| 340 | + ), |
|
| 341 | 341 | ), |
| 342 | 342 | 'weight' => 0, |
| 343 | 343 | 'show_on_page' => 0, |
@@ -347,19 +347,19 @@ discard block |
||
| 347 | 347 | 'i18n' => '0', |
| 348 | 348 | 'module' => 'boinc_standard', |
| 349 | 349 | 'locked' => array( |
| 350 | - '0' => 'name', |
|
| 350 | + '0' => 'name', |
|
| 351 | 351 | ), |
| 352 | 352 | 'api_version' => 2, |
| 353 | - ); |
|
| 354 | - // Exported flag: "Node Abuse 4 Not Kid Friendly". |
|
| 355 | - $flags['abuse_node_4'] = array( |
|
| 353 | + ); |
|
| 354 | + // Exported flag: "Node Abuse 4 Not Kid Friendly". |
|
| 355 | + $flags['abuse_node_4'] = array( |
|
| 356 | 356 | 'content_type' => 'node', |
| 357 | 357 | 'title' => 'Node Abuse 4 Not Kid Friendly', |
| 358 | 358 | 'global' => FALSE, |
| 359 | 359 | 'types' => array( |
| 360 | - '0' => 'forum', |
|
| 361 | - '1' => 'news', |
|
| 362 | - '2' => 'team_forum', |
|
| 360 | + '0' => 'forum', |
|
| 361 | + '1' => 'news', |
|
| 362 | + '2' => 'team_forum', |
|
| 363 | 363 | ), |
| 364 | 364 | 'flag_short' => 'Flag as not kid-friendly', |
| 365 | 365 | 'flag_long' => 'Flag this content as not kid-friendly.', |
@@ -370,12 +370,12 @@ discard block |
||
| 370 | 370 | 'unflag_denied_text' => '', |
| 371 | 371 | 'link_type' => 'toggle', |
| 372 | 372 | 'roles' => array( |
| 373 | - 'flag' => array( |
|
| 373 | + 'flag' => array( |
|
| 374 | 374 | '0' => 2, |
| 375 | - ), |
|
| 376 | - 'unflag' => array( |
|
| 375 | + ), |
|
| 376 | + 'unflag' => array( |
|
| 377 | 377 | '0' => 2, |
| 378 | - ), |
|
| 378 | + ), |
|
| 379 | 379 | ), |
| 380 | 380 | 'weight' => 0, |
| 381 | 381 | 'show_on_page' => 0, |
@@ -385,19 +385,19 @@ discard block |
||
| 385 | 385 | 'i18n' => '0', |
| 386 | 386 | 'module' => 'boinc_standard', |
| 387 | 387 | 'locked' => array( |
| 388 | - '0' => 'name', |
|
| 388 | + '0' => 'name', |
|
| 389 | 389 | ), |
| 390 | 390 | 'api_version' => 2, |
| 391 | - ); |
|
| 392 | - // Exported flag: "Node Abuse 5 Other". |
|
| 393 | - $flags['abuse_node_5'] = array( |
|
| 391 | + ); |
|
| 392 | + // Exported flag: "Node Abuse 5 Other". |
|
| 393 | + $flags['abuse_node_5'] = array( |
|
| 394 | 394 | 'content_type' => 'node', |
| 395 | 395 | 'title' => 'Node Abuse 5 Other', |
| 396 | 396 | 'global' => FALSE, |
| 397 | 397 | 'types' => array( |
| 398 | - '0' => 'forum', |
|
| 399 | - '1' => 'news', |
|
| 400 | - '2' => 'team_forum', |
|
| 398 | + '0' => 'forum', |
|
| 399 | + '1' => 'news', |
|
| 400 | + '2' => 'team_forum', |
|
| 401 | 401 | ), |
| 402 | 402 | 'flag_short' => 'Flag as other', |
| 403 | 403 | 'flag_long' => 'Flag this content - other reason.', |
@@ -408,12 +408,12 @@ discard block |
||
| 408 | 408 | 'unflag_denied_text' => '', |
| 409 | 409 | 'link_type' => 'toggle', |
| 410 | 410 | 'roles' => array( |
| 411 | - 'flag' => array( |
|
| 411 | + 'flag' => array( |
|
| 412 | 412 | '0' => 2, |
| 413 | - ), |
|
| 414 | - 'unflag' => array( |
|
| 413 | + ), |
|
| 414 | + 'unflag' => array( |
|
| 415 | 415 | '0' => 2, |
| 416 | - ), |
|
| 416 | + ), |
|
| 417 | 417 | ), |
| 418 | 418 | 'weight' => 0, |
| 419 | 419 | 'show_on_page' => 0, |
@@ -423,19 +423,19 @@ discard block |
||
| 423 | 423 | 'i18n' => '0', |
| 424 | 424 | 'module' => 'boinc_standard', |
| 425 | 425 | 'locked' => array( |
| 426 | - '0' => 'name', |
|
| 426 | + '0' => 'name', |
|
| 427 | 427 | ), |
| 428 | 428 | 'api_version' => 2, |
| 429 | - ); |
|
| 430 | - // Exported flag: "Node Abuse meta". |
|
| 431 | - $flags['abuse_node_meta'] = array( |
|
| 429 | + ); |
|
| 430 | + // Exported flag: "Node Abuse meta". |
|
| 431 | + $flags['abuse_node_meta'] = array( |
|
| 432 | 432 | 'content_type' => 'node', |
| 433 | 433 | 'title' => 'Node Abuse meta', |
| 434 | 434 | 'global' => FALSE, |
| 435 | 435 | 'types' => array( |
| 436 | - '0' => 'forum', |
|
| 437 | - '1' => 'news', |
|
| 438 | - '2' => 'team_forum', |
|
| 436 | + '0' => 'forum', |
|
| 437 | + '1' => 'news', |
|
| 438 | + '2' => 'team_forum', |
|
| 439 | 439 | ), |
| 440 | 440 | 'flag_short' => 'Report', |
| 441 | 441 | 'flag_long' => 'Report content', |
@@ -446,12 +446,12 @@ discard block |
||
| 446 | 446 | 'unflag_denied_text' => '', |
| 447 | 447 | 'link_type' => 'toggle', |
| 448 | 448 | 'roles' => array( |
| 449 | - 'flag' => array( |
|
| 449 | + 'flag' => array( |
|
| 450 | 450 | '0' => 2, |
| 451 | - ), |
|
| 452 | - 'unflag' => array( |
|
| 451 | + ), |
|
| 452 | + 'unflag' => array( |
|
| 453 | 453 | '0' => 2, |
| 454 | - ), |
|
| 454 | + ), |
|
| 455 | 455 | ), |
| 456 | 456 | 'weight' => 0, |
| 457 | 457 | 'show_on_page' => 1, |
@@ -461,12 +461,12 @@ discard block |
||
| 461 | 461 | 'i18n' => '0', |
| 462 | 462 | 'module' => 'boinc_standard', |
| 463 | 463 | 'locked' => array( |
| 464 | - '0' => 'name', |
|
| 464 | + '0' => 'name', |
|
| 465 | 465 | ), |
| 466 | 466 | 'api_version' => 2, |
| 467 | - ); |
|
| 468 | - // Exported flag: "User Abuse 1 SPAM". |
|
| 469 | - $flags['abuse_user_1'] = array( |
|
| 467 | + ); |
|
| 468 | + // Exported flag: "User Abuse 1 SPAM". |
|
| 469 | + $flags['abuse_user_1'] = array( |
|
| 470 | 470 | 'content_type' => 'user', |
| 471 | 471 | 'title' => 'User Abuse 1 SPAM', |
| 472 | 472 | 'global' => FALSE, |
@@ -480,24 +480,24 @@ discard block |
||
| 480 | 480 | 'unflag_denied_text' => '', |
| 481 | 481 | 'link_type' => 'toggle', |
| 482 | 482 | 'roles' => array( |
| 483 | - 'flag' => array( |
|
| 483 | + 'flag' => array( |
|
| 484 | 484 | '0' => 2, |
| 485 | - ), |
|
| 486 | - 'unflag' => array( |
|
| 485 | + ), |
|
| 486 | + 'unflag' => array( |
|
| 487 | 487 | '0' => 2, |
| 488 | - ), |
|
| 488 | + ), |
|
| 489 | 489 | ), |
| 490 | 490 | 'weight' => 0, |
| 491 | 491 | 'show_on_profile' => 0, |
| 492 | 492 | 'access_uid' => '', |
| 493 | 493 | 'module' => 'boinc_standard', |
| 494 | 494 | 'locked' => array( |
| 495 | - '0' => 'name', |
|
| 495 | + '0' => 'name', |
|
| 496 | 496 | ), |
| 497 | 497 | 'api_version' => 2, |
| 498 | - ); |
|
| 499 | - // Exported flag: "User Abuse 2 Link". |
|
| 500 | - $flags['abuse_user_2'] = array( |
|
| 498 | + ); |
|
| 499 | + // Exported flag: "User Abuse 2 Link". |
|
| 500 | + $flags['abuse_user_2'] = array( |
|
| 501 | 501 | 'content_type' => 'user', |
| 502 | 502 | 'title' => 'User Abuse 2 Link', |
| 503 | 503 | 'global' => FALSE, |
@@ -511,24 +511,24 @@ discard block |
||
| 511 | 511 | 'unflag_denied_text' => '', |
| 512 | 512 | 'link_type' => 'toggle', |
| 513 | 513 | 'roles' => array( |
| 514 | - 'flag' => array( |
|
| 514 | + 'flag' => array( |
|
| 515 | 515 | '0' => 2, |
| 516 | - ), |
|
| 517 | - 'unflag' => array( |
|
| 516 | + ), |
|
| 517 | + 'unflag' => array( |
|
| 518 | 518 | '0' => 2, |
| 519 | - ), |
|
| 519 | + ), |
|
| 520 | 520 | ), |
| 521 | 521 | 'weight' => 0, |
| 522 | 522 | 'show_on_profile' => 0, |
| 523 | 523 | 'access_uid' => '', |
| 524 | 524 | 'module' => 'boinc_standard', |
| 525 | 525 | 'locked' => array( |
| 526 | - '0' => 'name', |
|
| 526 | + '0' => 'name', |
|
| 527 | 527 | ), |
| 528 | 528 | 'api_version' => 2, |
| 529 | - ); |
|
| 530 | - // Exported flag: "User Abuse 3 Not Kid Friendly". |
|
| 531 | - $flags['abuse_user_3'] = array( |
|
| 529 | + ); |
|
| 530 | + // Exported flag: "User Abuse 3 Not Kid Friendly". |
|
| 531 | + $flags['abuse_user_3'] = array( |
|
| 532 | 532 | 'content_type' => 'user', |
| 533 | 533 | 'title' => 'User Abuse 3 Not Kid Friendly', |
| 534 | 534 | 'global' => FALSE, |
@@ -542,24 +542,24 @@ discard block |
||
| 542 | 542 | 'unflag_denied_text' => '', |
| 543 | 543 | 'link_type' => 'toggle', |
| 544 | 544 | 'roles' => array( |
| 545 | - 'flag' => array( |
|
| 545 | + 'flag' => array( |
|
| 546 | 546 | '0' => 2, |
| 547 | - ), |
|
| 548 | - 'unflag' => array( |
|
| 547 | + ), |
|
| 548 | + 'unflag' => array( |
|
| 549 | 549 | '0' => 2, |
| 550 | - ), |
|
| 550 | + ), |
|
| 551 | 551 | ), |
| 552 | 552 | 'weight' => 0, |
| 553 | 553 | 'show_on_profile' => 0, |
| 554 | 554 | 'access_uid' => '', |
| 555 | 555 | 'module' => 'boinc_standard', |
| 556 | 556 | 'locked' => array( |
| 557 | - '0' => 'name', |
|
| 557 | + '0' => 'name', |
|
| 558 | 558 | ), |
| 559 | 559 | 'api_version' => 2, |
| 560 | - ); |
|
| 561 | - // Exported flag: "User Abuse 4 Other". |
|
| 562 | - $flags['abuse_user_4'] = array( |
|
| 560 | + ); |
|
| 561 | + // Exported flag: "User Abuse 4 Other". |
|
| 562 | + $flags['abuse_user_4'] = array( |
|
| 563 | 563 | 'content_type' => 'user', |
| 564 | 564 | 'title' => 'User Abuse 4 Other', |
| 565 | 565 | 'global' => FALSE, |
@@ -573,24 +573,24 @@ discard block |
||
| 573 | 573 | 'unflag_denied_text' => '', |
| 574 | 574 | 'link_type' => 'toggle', |
| 575 | 575 | 'roles' => array( |
| 576 | - 'flag' => array( |
|
| 576 | + 'flag' => array( |
|
| 577 | 577 | '0' => 2, |
| 578 | - ), |
|
| 579 | - 'unflag' => array( |
|
| 578 | + ), |
|
| 579 | + 'unflag' => array( |
|
| 580 | 580 | '0' => 2, |
| 581 | - ), |
|
| 581 | + ), |
|
| 582 | 582 | ), |
| 583 | 583 | 'weight' => 0, |
| 584 | 584 | 'show_on_profile' => 0, |
| 585 | 585 | 'access_uid' => '', |
| 586 | 586 | 'module' => 'boinc_standard', |
| 587 | 587 | 'locked' => array( |
| 588 | - '0' => 'name', |
|
| 588 | + '0' => 'name', |
|
| 589 | 589 | ), |
| 590 | 590 | 'api_version' => 2, |
| 591 | - ); |
|
| 592 | - // Exported flag: "User Abuse Meta". |
|
| 593 | - $flags['abuse_user_meta'] = array( |
|
| 591 | + ); |
|
| 592 | + // Exported flag: "User Abuse Meta". |
|
| 593 | + $flags['abuse_user_meta'] = array( |
|
| 594 | 594 | 'content_type' => 'user', |
| 595 | 595 | 'title' => 'User Abuse Meta', |
| 596 | 596 | 'global' => FALSE, |
@@ -604,31 +604,31 @@ discard block |
||
| 604 | 604 | 'unflag_denied_text' => '', |
| 605 | 605 | 'link_type' => 'toggle', |
| 606 | 606 | 'roles' => array( |
| 607 | - 'flag' => array( |
|
| 607 | + 'flag' => array( |
|
| 608 | 608 | '0' => 2, |
| 609 | - ), |
|
| 610 | - 'unflag' => array( |
|
| 609 | + ), |
|
| 610 | + 'unflag' => array( |
|
| 611 | 611 | '0' => 2, |
| 612 | - ), |
|
| 612 | + ), |
|
| 613 | 613 | ), |
| 614 | 614 | 'weight' => 0, |
| 615 | 615 | 'show_on_profile' => 1, |
| 616 | 616 | 'access_uid' => '', |
| 617 | 617 | 'module' => 'boinc_standard', |
| 618 | 618 | 'locked' => array( |
| 619 | - '0' => 'name', |
|
| 619 | + '0' => 'name', |
|
| 620 | 620 | ), |
| 621 | 621 | 'api_version' => 2, |
| 622 | - ); |
|
| 623 | - // Exported flag: "Subscriptions". |
|
| 624 | - $flags['subscriptions'] = array( |
|
| 622 | + ); |
|
| 623 | + // Exported flag: "Subscriptions". |
|
| 624 | + $flags['subscriptions'] = array( |
|
| 625 | 625 | 'content_type' => 'node', |
| 626 | 626 | 'title' => 'Subscriptions', |
| 627 | 627 | 'global' => '0', |
| 628 | 628 | 'types' => array( |
| 629 | - '0' => 'forum', |
|
| 630 | - '1' => 'news', |
|
| 631 | - '2' => 'team_forum', |
|
| 629 | + '0' => 'forum', |
|
| 630 | + '1' => 'news', |
|
| 631 | + '2' => 'team_forum', |
|
| 632 | 632 | ), |
| 633 | 633 | 'flag_short' => 'subscribe', |
| 634 | 634 | 'flag_long' => 'Subscribe to this topic', |
@@ -639,12 +639,12 @@ discard block |
||
| 639 | 639 | 'unflag_denied_text' => '', |
| 640 | 640 | 'link_type' => 'toggle', |
| 641 | 641 | 'roles' => array( |
| 642 | - 'flag' => array( |
|
| 642 | + 'flag' => array( |
|
| 643 | 643 | '0' => 2, |
| 644 | - ), |
|
| 645 | - 'unflag' => array( |
|
| 644 | + ), |
|
| 645 | + 'unflag' => array( |
|
| 646 | 646 | '0' => 2, |
| 647 | - ), |
|
| 647 | + ), |
|
| 648 | 648 | ), |
| 649 | 649 | 'weight' => 0, |
| 650 | 650 | 'show_on_page' => 1, |
@@ -654,11 +654,11 @@ discard block |
||
| 654 | 654 | 'i18n' => '0', |
| 655 | 655 | 'module' => 'boinc_standard', |
| 656 | 656 | 'locked' => array( |
| 657 | - '0' => 'name', |
|
| 657 | + '0' => 'name', |
|
| 658 | 658 | ), |
| 659 | 659 | 'api_version' => 2, |
| 660 | - ); |
|
| 661 | - return $flags; |
|
| 660 | + ); |
|
| 661 | + return $flags; |
|
| 662 | 662 | |
| 663 | 663 | } |
| 664 | 664 | |
@@ -666,47 +666,47 @@ discard block |
||
| 666 | 666 | * Implementation of hook_node_info(). |
| 667 | 667 | */ |
| 668 | 668 | function boinc_standard_node_info() { |
| 669 | - $items = array( |
|
| 669 | + $items = array( |
|
| 670 | 670 | 'page' => array( |
| 671 | - 'name' => t('Page'), |
|
| 672 | - 'module' => 'features', |
|
| 673 | - '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.'), |
|
| 674 | - 'has_title' => '1', |
|
| 675 | - 'title_label' => t('Title'), |
|
| 676 | - 'has_body' => '1', |
|
| 677 | - 'body_label' => t('Body'), |
|
| 678 | - 'min_word_count' => '0', |
|
| 679 | - 'help' => '', |
|
| 671 | + 'name' => t('Page'), |
|
| 672 | + 'module' => 'features', |
|
| 673 | + '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.'), |
|
| 674 | + 'has_title' => '1', |
|
| 675 | + 'title_label' => t('Title'), |
|
| 676 | + 'has_body' => '1', |
|
| 677 | + 'body_label' => t('Body'), |
|
| 678 | + 'min_word_count' => '0', |
|
| 679 | + 'help' => '', |
|
| 680 | 680 | ), |
| 681 | - ); |
|
| 682 | - return $items; |
|
| 681 | + ); |
|
| 682 | + return $items; |
|
| 683 | 683 | } |
| 684 | 684 | |
| 685 | 685 | /** |
| 686 | 686 | * Implementation of hook_rules_defaults(). |
| 687 | 687 | */ |
| 688 | 688 | function boinc_standard_rules_defaults() { |
| 689 | - return array( |
|
| 689 | + return array( |
|
| 690 | 690 | 'rules' => array( |
| 691 | - 'rules_notify_admins_about_circular_merge_error' => array( |
|
| 691 | + 'rules_notify_admins_about_circular_merge_error' => array( |
|
| 692 | 692 | '#type' => 'rule', |
| 693 | 693 | '#set' => 'event_boincwork_circular_merge_error', |
| 694 | 694 | '#label' => 'Notify admins about circular merge error', |
| 695 | 695 | '#active' => 1, |
| 696 | 696 | '#weight' => '0', |
| 697 | 697 | '#categories' => array( |
| 698 | - '0' => 'boinc_standard', |
|
| 699 | - '1' => 'admin notification', |
|
| 698 | + '0' => 'boinc_standard', |
|
| 699 | + '1' => 'admin notification', |
|
| 700 | 700 | ), |
| 701 | 701 | '#status' => 'default', |
| 702 | 702 | '#conditions' => array(), |
| 703 | 703 | '#actions' => array( |
| 704 | - '0' => array( |
|
| 704 | + '0' => array( |
|
| 705 | 705 | '#type' => 'action', |
| 706 | 706 | '#settings' => array( |
| 707 | - 'from' => '', |
|
| 708 | - 'subject' => '[subject_tag:string] Circular host merging error', |
|
| 709 | - 'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s rpc_seqno is equal to the old_host\'s id. |
|
| 707 | + 'from' => '', |
|
| 708 | + 'subject' => '[subject_tag:string] Circular host merging error', |
|
| 709 | + 'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s rpc_seqno is equal to the old_host\'s id. |
|
| 710 | 710 | |
| 711 | 711 | Information about this host merge attempt: |
| 712 | 712 | <?php |
@@ -717,62 +717,62 @@ discard block |
||
| 717 | 717 | print "BOINC id: " . $account->boincuser_id . "\\n"; |
| 718 | 718 | print "Drupal UID: " . $user->uid . "\\n"; |
| 719 | 719 | ?>', |
| 720 | - '#eval input' => array( |
|
| 720 | + '#eval input' => array( |
|
| 721 | 721 | 'token_rules_input_evaluator' => array( |
| 722 | - 'subject' => array( |
|
| 722 | + 'subject' => array( |
|
| 723 | 723 | '0' => 'subject_tag', |
| 724 | 724 | '1' => ':global', |
| 725 | - ), |
|
| 726 | - 'message' => array( |
|
| 725 | + ), |
|
| 726 | + 'message' => array( |
|
| 727 | 727 | '0' => ':global', |
| 728 | - ), |
|
| 729 | - 'from' => array( |
|
| 728 | + ), |
|
| 729 | + 'from' => array( |
|
| 730 | 730 | '0' => ':global', |
| 731 | - ), |
|
| 731 | + ), |
|
| 732 | 732 | ), |
| 733 | 733 | 'rules_input_evaluator_php' => array( |
| 734 | - 'message' => array( |
|
| 734 | + 'message' => array( |
|
| 735 | 735 | '0' => 'oldhost_id', |
| 736 | 736 | '1' => 'targethost_id', |
| 737 | 737 | '2' => 'user', |
| 738 | - ), |
|
| 738 | + ), |
|
| 739 | + ), |
|
| 739 | 740 | ), |
| 740 | - ), |
|
| 741 | 741 | ), |
| 742 | 742 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 743 | 743 | '#info' => array( |
| 744 | - 'label' => 'Notify admins via email', |
|
| 745 | - 'module' => 'BOINC core', |
|
| 746 | - 'eval input' => array( |
|
| 744 | + 'label' => 'Notify admins via email', |
|
| 745 | + 'module' => 'BOINC core', |
|
| 746 | + 'eval input' => array( |
|
| 747 | 747 | '0' => 'subject', |
| 748 | 748 | '1' => 'message', |
| 749 | 749 | '2' => 'from', |
| 750 | - ), |
|
| 750 | + ), |
|
| 751 | 751 | ), |
| 752 | 752 | '#weight' => 0.0, |
| 753 | - ), |
|
| 753 | + ), |
|
| 754 | 754 | ), |
| 755 | 755 | '#version' => 6003, |
| 756 | - ), |
|
| 757 | - 'rules_notify_admins_about_zombie_merge_attempt' => array( |
|
| 756 | + ), |
|
| 757 | + 'rules_notify_admins_about_zombie_merge_attempt' => array( |
|
| 758 | 758 | '#type' => 'rule', |
| 759 | 759 | '#set' => 'event_boincwork_zombie_merge_error', |
| 760 | 760 | '#label' => 'Notify admins about zombie merge attempt', |
| 761 | 761 | '#active' => 1, |
| 762 | 762 | '#weight' => '0', |
| 763 | 763 | '#categories' => array( |
| 764 | - '0' => 'boinc_standard', |
|
| 765 | - '1' => 'admin notification', |
|
| 764 | + '0' => 'boinc_standard', |
|
| 765 | + '1' => 'admin notification', |
|
| 766 | 766 | ), |
| 767 | 767 | '#status' => 'default', |
| 768 | 768 | '#conditions' => array(), |
| 769 | 769 | '#actions' => array( |
| 770 | - '0' => array( |
|
| 770 | + '0' => array( |
|
| 771 | 771 | '#type' => 'action', |
| 772 | 772 | '#settings' => array( |
| 773 | - 'from' => '', |
|
| 774 | - 'subject' => '[subject_tag:string] Zombie host merging error', |
|
| 775 | - 'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s userid is equal to 0, a zombie host. |
|
| 773 | + 'from' => '', |
|
| 774 | + 'subject' => '[subject_tag:string] Zombie host merging error', |
|
| 775 | + 'message' => 'User tried to merge a host (old_host) into a target host where the target host\'s userid is equal to 0, a zombie host. |
|
| 776 | 776 | I.e., $target_host->userid == 0 |
| 777 | 777 | |
| 778 | 778 | Information about this host merge attempt: |
@@ -784,3303 +784,3303 @@ discard block |
||
| 784 | 784 | print "BOINC id: " . $account->boincuser_id . "\\n"; |
| 785 | 785 | print "Drupal UID: " . $user->uid . "\\n"; |
| 786 | 786 | ?>', |
| 787 | - '#eval input' => array( |
|
| 787 | + '#eval input' => array( |
|
| 788 | 788 | 'token_rules_input_evaluator' => array( |
| 789 | - 'subject' => array( |
|
| 789 | + 'subject' => array( |
|
| 790 | 790 | '0' => 'subject_tag', |
| 791 | 791 | '1' => ':global', |
| 792 | - ), |
|
| 793 | - 'message' => array( |
|
| 792 | + ), |
|
| 793 | + 'message' => array( |
|
| 794 | 794 | '0' => ':global', |
| 795 | - ), |
|
| 796 | - 'from' => array( |
|
| 795 | + ), |
|
| 796 | + 'from' => array( |
|
| 797 | 797 | '0' => ':global', |
| 798 | - ), |
|
| 798 | + ), |
|
| 799 | 799 | ), |
| 800 | 800 | 'rules_input_evaluator_php' => array( |
| 801 | - 'message' => array( |
|
| 801 | + 'message' => array( |
|
| 802 | 802 | '0' => 'oldhost_id', |
| 803 | 803 | '1' => 'targethost_id', |
| 804 | 804 | '2' => 'user', |
| 805 | - ), |
|
| 805 | + ), |
|
| 806 | + ), |
|
| 806 | 807 | ), |
| 807 | - ), |
|
| 808 | 808 | ), |
| 809 | 809 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 810 | 810 | '#info' => array( |
| 811 | - 'label' => 'Notify admins via email', |
|
| 812 | - 'module' => 'BOINC core', |
|
| 813 | - 'eval input' => array( |
|
| 811 | + 'label' => 'Notify admins via email', |
|
| 812 | + 'module' => 'BOINC core', |
|
| 813 | + 'eval input' => array( |
|
| 814 | 814 | '0' => 'subject', |
| 815 | 815 | '1' => 'message', |
| 816 | 816 | '2' => 'from', |
| 817 | - ), |
|
| 817 | + ), |
|
| 818 | 818 | ), |
| 819 | 819 | '#weight' => 0.0, |
| 820 | - ), |
|
| 820 | + ), |
|
| 821 | 821 | ), |
| 822 | 822 | '#version' => 6003, |
| 823 | - ), |
|
| 824 | - 'rules_notify_admins_error_when_user_consenting_with_missing_consent_type' => array( |
|
| 823 | + ), |
|
| 824 | + 'rules_notify_admins_error_when_user_consenting_with_missing_consent_type' => array( |
|
| 825 | 825 | '#type' => 'rule', |
| 826 | 826 | '#set' => 'event_boincuser_general_consent_type_error', |
| 827 | 827 | '#label' => 'Notify admins error when user consenting with missing consent type', |
| 828 | 828 | '#active' => 1, |
| 829 | 829 | '#weight' => '0', |
| 830 | 830 | '#categories' => array( |
| 831 | - '0' => 'boinc_standard', |
|
| 832 | - '1' => 'admin notification', |
|
| 831 | + '0' => 'boinc_standard', |
|
| 832 | + '1' => 'admin notification', |
|
| 833 | 833 | ), |
| 834 | 834 | '#status' => 'default', |
| 835 | 835 | '#conditions' => array(), |
| 836 | 836 | '#actions' => array( |
| 837 | - '0' => array( |
|
| 837 | + '0' => array( |
|
| 838 | 838 | '#type' => 'action', |
| 839 | 839 | '#settings' => array( |
| 840 | - 'from' => '', |
|
| 841 | - 'subject' => '[subject_tag:string] Error from user consenting to terms of use, missing consent type', |
|
| 842 | - 'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and the function \'check_consent_type\' returned an error. Consent type [consent_type:string] seems to be generating an error.', |
|
| 843 | - '#eval input' => array( |
|
| 840 | + 'from' => '', |
|
| 841 | + 'subject' => '[subject_tag:string] Error from user consenting to terms of use, missing consent type', |
|
| 842 | + 'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and the function \'check_consent_type\' returned an error. Consent type [consent_type:string] seems to be generating an error.', |
|
| 843 | + '#eval input' => array( |
|
| 844 | 844 | 'token_rules_input_evaluator' => array( |
| 845 | - 'subject' => array( |
|
| 845 | + 'subject' => array( |
|
| 846 | 846 | '0' => 'subject_tag', |
| 847 | 847 | '1' => ':global', |
| 848 | - ), |
|
| 849 | - 'message' => array( |
|
| 848 | + ), |
|
| 849 | + 'message' => array( |
|
| 850 | 850 | '0' => 'consent_type', |
| 851 | 851 | '1' => 'user', |
| 852 | 852 | '2' => ':global', |
| 853 | - ), |
|
| 854 | - 'from' => array( |
|
| 853 | + ), |
|
| 854 | + 'from' => array( |
|
| 855 | 855 | '0' => ':global', |
| 856 | - ), |
|
| 856 | + ), |
|
| 857 | + ), |
|
| 857 | 858 | ), |
| 858 | - ), |
|
| 859 | 859 | ), |
| 860 | 860 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 861 | 861 | '#info' => array( |
| 862 | - 'label' => 'Notify admins via email', |
|
| 863 | - 'module' => 'BOINC core', |
|
| 864 | - 'eval input' => array( |
|
| 862 | + 'label' => 'Notify admins via email', |
|
| 863 | + 'module' => 'BOINC core', |
|
| 864 | + 'eval input' => array( |
|
| 865 | 865 | '0' => 'subject', |
| 866 | 866 | '1' => 'message', |
| 867 | 867 | '2' => 'from', |
| 868 | - ), |
|
| 868 | + ), |
|
| 869 | 869 | ), |
| 870 | 870 | '#weight' => 0.0, |
| 871 | - ), |
|
| 871 | + ), |
|
| 872 | 872 | ), |
| 873 | 873 | '#version' => 6003, |
| 874 | - ), |
|
| 875 | - 'rules_notify_admins_user_changing_email_address_to_existing_user' => array( |
|
| 874 | + ), |
|
| 875 | + 'rules_notify_admins_user_changing_email_address_to_existing_user' => array( |
|
| 876 | 876 | '#type' => 'rule', |
| 877 | 877 | '#set' => 'event_boincuser_change_email_error', |
| 878 | 878 | '#label' => 'Notify admins user changing email address to existing user', |
| 879 | 879 | '#active' => 1, |
| 880 | 880 | '#weight' => '0', |
| 881 | 881 | '#categories' => array( |
| 882 | - '0' => 'boinc_standard', |
|
| 883 | - '1' => 'admin notification', |
|
| 882 | + '0' => 'boinc_standard', |
|
| 883 | + '1' => 'admin notification', |
|
| 884 | 884 | ), |
| 885 | 885 | '#status' => 'default', |
| 886 | 886 | '#conditions' => array(), |
| 887 | 887 | '#actions' => array( |
| 888 | - '0' => array( |
|
| 888 | + '0' => array( |
|
| 889 | 889 | '#type' => 'action', |
| 890 | 890 | '#settings' => array( |
| 891 | - 'from' => '', |
|
| 892 | - 'subject' => '[subject_tag:string] User attempted to change email address to one used by existing user.', |
|
| 893 | - 'message' => '[user:display-name] with email [user:mail] attempted to change their email to [new_email_addr:string], which is already in use by another user.', |
|
| 894 | - '#eval input' => array( |
|
| 891 | + 'from' => '', |
|
| 892 | + 'subject' => '[subject_tag:string] User attempted to change email address to one used by existing user.', |
|
| 893 | + 'message' => '[user:display-name] with email [user:mail] attempted to change their email to [new_email_addr:string], which is already in use by another user.', |
|
| 894 | + '#eval input' => array( |
|
| 895 | 895 | 'token_rules_input_evaluator' => array( |
| 896 | - 'subject' => array( |
|
| 896 | + 'subject' => array( |
|
| 897 | 897 | '0' => 'subject_tag', |
| 898 | 898 | '1' => ':global', |
| 899 | - ), |
|
| 900 | - 'message' => array( |
|
| 899 | + ), |
|
| 900 | + 'message' => array( |
|
| 901 | 901 | '0' => 'new_email_addr', |
| 902 | 902 | '1' => 'user', |
| 903 | 903 | '2' => ':global', |
| 904 | - ), |
|
| 905 | - 'from' => array( |
|
| 904 | + ), |
|
| 905 | + 'from' => array( |
|
| 906 | 906 | '0' => ':global', |
| 907 | - ), |
|
| 907 | + ), |
|
| 908 | + ), |
|
| 908 | 909 | ), |
| 909 | - ), |
|
| 910 | 910 | ), |
| 911 | 911 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 912 | 912 | '#info' => array( |
| 913 | - 'label' => 'Notify admins via email', |
|
| 914 | - 'module' => 'BOINC core', |
|
| 915 | - 'eval input' => array( |
|
| 913 | + 'label' => 'Notify admins via email', |
|
| 914 | + 'module' => 'BOINC core', |
|
| 915 | + 'eval input' => array( |
|
| 916 | 916 | '0' => 'subject', |
| 917 | 917 | '1' => 'message', |
| 918 | 918 | '2' => 'from', |
| 919 | - ), |
|
| 919 | + ), |
|
| 920 | 920 | ), |
| 921 | 921 | '#weight' => 0.0, |
| 922 | - ), |
|
| 922 | + ), |
|
| 923 | 923 | ), |
| 924 | 924 | '#version' => 6003, |
| 925 | - ), |
|
| 926 | - 'rules_notify_admins_user_reverting_to_previous_email_address_that_is_now_used_by_another_user' => array( |
|
| 925 | + ), |
|
| 926 | + 'rules_notify_admins_user_reverting_to_previous_email_address_that_is_now_used_by_another_user' => array( |
|
| 927 | 927 | '#type' => 'rule', |
| 928 | 928 | '#set' => 'event_boincuser_revert_email_error', |
| 929 | 929 | '#label' => 'Notify admins user reverting to previous email address that is now used by another user', |
| 930 | 930 | '#active' => 1, |
| 931 | 931 | '#weight' => '0', |
| 932 | 932 | '#categories' => array( |
| 933 | - '0' => 'boinc_standard', |
|
| 934 | - '1' => 'admin notification', |
|
| 933 | + '0' => 'boinc_standard', |
|
| 934 | + '1' => 'admin notification', |
|
| 935 | 935 | ), |
| 936 | 936 | '#status' => 'default', |
| 937 | 937 | '#conditions' => array(), |
| 938 | 938 | '#actions' => array( |
| 939 | - '0' => array( |
|
| 939 | + '0' => array( |
|
| 940 | 940 | '#type' => 'action', |
| 941 | 941 | '#settings' => array( |
| 942 | - 'from' => '', |
|
| 943 | - 'subject' => '[subject_tag:string] User attempted to revert to previous email address to one used by existing user.', |
|
| 944 | - 'message' => '[user:display-name] with email [user:mail] attempted to revert their email to their previous email address, [new_email_addr:string], which is already in use by another user.', |
|
| 945 | - '#eval input' => array( |
|
| 942 | + 'from' => '', |
|
| 943 | + 'subject' => '[subject_tag:string] User attempted to revert to previous email address to one used by existing user.', |
|
| 944 | + 'message' => '[user:display-name] with email [user:mail] attempted to revert their email to their previous email address, [new_email_addr:string], which is already in use by another user.', |
|
| 945 | + '#eval input' => array( |
|
| 946 | 946 | 'token_rules_input_evaluator' => array( |
| 947 | - 'subject' => array( |
|
| 947 | + 'subject' => array( |
|
| 948 | 948 | '0' => 'subject_tag', |
| 949 | 949 | '1' => ':global', |
| 950 | - ), |
|
| 951 | - 'message' => array( |
|
| 950 | + ), |
|
| 951 | + 'message' => array( |
|
| 952 | 952 | '0' => 'new_email_addr', |
| 953 | 953 | '1' => 'user', |
| 954 | 954 | '2' => ':global', |
| 955 | - ), |
|
| 956 | - 'from' => array( |
|
| 955 | + ), |
|
| 956 | + 'from' => array( |
|
| 957 | 957 | '0' => ':global', |
| 958 | - ), |
|
| 958 | + ), |
|
| 959 | + ), |
|
| 959 | 960 | ), |
| 960 | - ), |
|
| 961 | 961 | ), |
| 962 | 962 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 963 | 963 | '#info' => array( |
| 964 | - 'label' => 'Notify admins via email', |
|
| 965 | - 'module' => 'BOINC core', |
|
| 966 | - 'eval input' => array( |
|
| 964 | + 'label' => 'Notify admins via email', |
|
| 965 | + 'module' => 'BOINC core', |
|
| 966 | + 'eval input' => array( |
|
| 967 | 967 | '0' => 'subject', |
| 968 | 968 | '1' => 'message', |
| 969 | 969 | '2' => 'from', |
| 970 | - ), |
|
| 970 | + ), |
|
| 971 | 971 | ), |
| 972 | 972 | '#weight' => 0.0, |
| 973 | - ), |
|
| 973 | + ), |
|
| 974 | 974 | ), |
| 975 | 975 | '#version' => 6003, |
| 976 | - ), |
|
| 977 | - 'rules_notify_admins_when_user_fails_to_delete_their_own_account' => array( |
|
| 976 | + ), |
|
| 977 | + 'rules_notify_admins_when_user_fails_to_delete_their_own_account' => array( |
|
| 978 | 978 | '#type' => 'rule', |
| 979 | 979 | '#set' => 'event_boincuser_delete_general_error', |
| 980 | 980 | '#label' => 'Notify admins when user fails to delete their own account', |
| 981 | 981 | '#active' => 1, |
| 982 | 982 | '#weight' => '0', |
| 983 | 983 | '#categories' => array( |
| 984 | - '0' => 'boinc_standard', |
|
| 985 | - '1' => 'admin notification', |
|
| 984 | + '0' => 'boinc_standard', |
|
| 985 | + '1' => 'admin notification', |
|
| 986 | 986 | ), |
| 987 | 987 | '#status' => 'default', |
| 988 | 988 | '#conditions' => array(), |
| 989 | 989 | '#actions' => array( |
| 990 | - '0' => array( |
|
| 990 | + '0' => array( |
|
| 991 | 991 | '#type' => 'action', |
| 992 | 992 | '#settings' => array( |
| 993 | - 'from' => '', |
|
| 994 | - 'subject' => '[subject_tag:string] Error when user trying to delete their account', |
|
| 995 | - 'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error from \'boincuser_load\'.', |
|
| 996 | - '#eval input' => array( |
|
| 993 | + 'from' => '', |
|
| 994 | + 'subject' => '[subject_tag:string] Error when user trying to delete their account', |
|
| 995 | + 'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error from \'boincuser_load\'.', |
|
| 996 | + '#eval input' => array( |
|
| 997 | 997 | 'token_rules_input_evaluator' => array( |
| 998 | - 'subject' => array( |
|
| 998 | + 'subject' => array( |
|
| 999 | 999 | '0' => 'subject_tag', |
| 1000 | 1000 | '1' => ':global', |
| 1001 | - ), |
|
| 1002 | - 'message' => array( |
|
| 1001 | + ), |
|
| 1002 | + 'message' => array( |
|
| 1003 | 1003 | '0' => 'user', |
| 1004 | 1004 | '1' => ':global', |
| 1005 | - ), |
|
| 1006 | - 'from' => array( |
|
| 1005 | + ), |
|
| 1006 | + 'from' => array( |
|
| 1007 | 1007 | '0' => ':global', |
| 1008 | - ), |
|
| 1008 | + ), |
|
| 1009 | + ), |
|
| 1009 | 1010 | ), |
| 1010 | - ), |
|
| 1011 | 1011 | ), |
| 1012 | 1012 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 1013 | 1013 | '#info' => array( |
| 1014 | - 'label' => 'Notify admins via email', |
|
| 1015 | - 'module' => 'BOINC core', |
|
| 1016 | - 'eval input' => array( |
|
| 1014 | + 'label' => 'Notify admins via email', |
|
| 1015 | + 'module' => 'BOINC core', |
|
| 1016 | + 'eval input' => array( |
|
| 1017 | 1017 | '0' => 'subject', |
| 1018 | 1018 | '1' => 'message', |
| 1019 | 1019 | '2' => 'from', |
| 1020 | - ), |
|
| 1020 | + ), |
|
| 1021 | 1021 | ), |
| 1022 | 1022 | '#weight' => 0.0, |
| 1023 | - ), |
|
| 1023 | + ), |
|
| 1024 | 1024 | ), |
| 1025 | 1025 | '#version' => 6003, |
| 1026 | - ), |
|
| 1027 | - 'rules_notify_admins_when_user_tries_to_delete_account_with_invalid_uid' => array( |
|
| 1026 | + ), |
|
| 1027 | + 'rules_notify_admins_when_user_tries_to_delete_account_with_invalid_uid' => array( |
|
| 1028 | 1028 | '#type' => 'rule', |
| 1029 | 1029 | '#set' => 'event_boincuser_delete_uid_invalid_error', |
| 1030 | 1030 | '#label' => 'Notify admins when user tries to delete account with invalid uid', |
| 1031 | 1031 | '#active' => 1, |
| 1032 | 1032 | '#weight' => '0', |
| 1033 | 1033 | '#categories' => array( |
| 1034 | - '0' => 'boinc_standard', |
|
| 1035 | - '1' => 'admin notification', |
|
| 1034 | + '0' => 'boinc_standard', |
|
| 1035 | + '1' => 'admin notification', |
|
| 1036 | 1036 | ), |
| 1037 | 1037 | '#status' => 'default', |
| 1038 | 1038 | '#conditions' => array(), |
| 1039 | 1039 | '#actions' => array( |
| 1040 | - '0' => array( |
|
| 1040 | + '0' => array( |
|
| 1041 | 1041 | '#type' => 'action', |
| 1042 | 1042 | '#settings' => array( |
| 1043 | - 'from' => '', |
|
| 1044 | - 'subject' => '[subject_tag:string] invalid uid when user trying to delete their account', |
|
| 1045 | - 'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error is Drupal UID=[user:uid] cannot be located.', |
|
| 1046 | - '#eval input' => array( |
|
| 1043 | + 'from' => '', |
|
| 1044 | + 'subject' => '[subject_tag:string] invalid uid when user trying to delete their account', |
|
| 1045 | + 'message' => 'User [user:display-name], [user:mail], attempted to delete their account. Error is Drupal UID=[user:uid] cannot be located.', |
|
| 1046 | + '#eval input' => array( |
|
| 1047 | 1047 | 'token_rules_input_evaluator' => array( |
| 1048 | - 'subject' => array( |
|
| 1048 | + 'subject' => array( |
|
| 1049 | 1049 | '0' => 'subject_tag', |
| 1050 | 1050 | '1' => ':global', |
| 1051 | - ), |
|
| 1052 | - 'message' => array( |
|
| 1051 | + ), |
|
| 1052 | + 'message' => array( |
|
| 1053 | 1053 | '0' => 'user', |
| 1054 | 1054 | '1' => ':global', |
| 1055 | - ), |
|
| 1056 | - 'from' => array( |
|
| 1055 | + ), |
|
| 1056 | + 'from' => array( |
|
| 1057 | 1057 | '0' => ':global', |
| 1058 | - ), |
|
| 1058 | + ), |
|
| 1059 | + ), |
|
| 1059 | 1060 | ), |
| 1060 | - ), |
|
| 1061 | 1061 | ), |
| 1062 | 1062 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 1063 | 1063 | '#info' => array( |
| 1064 | - 'label' => 'Notify admins via email', |
|
| 1065 | - 'module' => 'BOINC core', |
|
| 1066 | - 'eval input' => array( |
|
| 1064 | + 'label' => 'Notify admins via email', |
|
| 1065 | + 'module' => 'BOINC core', |
|
| 1066 | + 'eval input' => array( |
|
| 1067 | 1067 | '0' => 'subject', |
| 1068 | 1068 | '1' => 'message', |
| 1069 | 1069 | '2' => 'from', |
| 1070 | - ), |
|
| 1070 | + ), |
|
| 1071 | 1071 | ), |
| 1072 | 1072 | '#weight' => 0.0, |
| 1073 | - ), |
|
| 1073 | + ), |
|
| 1074 | 1074 | ), |
| 1075 | 1075 | '#version' => 6003, |
| 1076 | - ), |
|
| 1077 | - 'rules_notify_admin_error_when_user_consenting_to_terms_of_use' => array( |
|
| 1076 | + ), |
|
| 1077 | + 'rules_notify_admin_error_when_user_consenting_to_terms_of_use' => array( |
|
| 1078 | 1078 | '#type' => 'rule', |
| 1079 | 1079 | '#set' => 'event_boincuser_general_consent_error', |
| 1080 | 1080 | '#label' => 'Notify admins error when user consenting to terms of use', |
| 1081 | 1081 | '#active' => 1, |
| 1082 | 1082 | '#weight' => '0', |
| 1083 | 1083 | '#categories' => array( |
| 1084 | - '0' => 'boinc_standard', |
|
| 1085 | - '1' => 'admin notification', |
|
| 1084 | + '0' => 'boinc_standard', |
|
| 1085 | + '1' => 'admin notification', |
|
| 1086 | 1086 | ), |
| 1087 | 1087 | '#status' => 'default', |
| 1088 | 1088 | '#conditions' => array(), |
| 1089 | 1089 | '#actions' => array( |
| 1090 | - '0' => array( |
|
| 1090 | + '0' => array( |
|
| 1091 | 1091 | '#type' => 'action', |
| 1092 | 1092 | '#settings' => array( |
| 1093 | - 'from' => '', |
|
| 1094 | - 'subject' => '[subject_tag:string] Error when user attempted to consent to terms of use', |
|
| 1095 | - 'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and an error was generated from function \'consent_to_a_policy\'. |
|
| 1093 | + 'from' => '', |
|
| 1094 | + 'subject' => '[subject_tag:string] Error when user attempted to consent to terms of use', |
|
| 1095 | + 'message' => '[user:display-name], [user:mail], attempted to consent to terms-of-use form and an error was generated from function \'consent_to_a_policy\'. |
|
| 1096 | 1096 | |
| 1097 | 1097 | asdf jkl;', |
| 1098 | - '#eval input' => array( |
|
| 1098 | + '#eval input' => array( |
|
| 1099 | 1099 | 'token_rules_input_evaluator' => array( |
| 1100 | - 'subject' => array( |
|
| 1100 | + 'subject' => array( |
|
| 1101 | 1101 | '0' => 'subject_tag', |
| 1102 | 1102 | '1' => ':global', |
| 1103 | - ), |
|
| 1104 | - 'message' => array( |
|
| 1103 | + ), |
|
| 1104 | + 'message' => array( |
|
| 1105 | 1105 | '0' => 'user', |
| 1106 | 1106 | '1' => ':global', |
| 1107 | - ), |
|
| 1108 | - 'from' => array( |
|
| 1107 | + ), |
|
| 1108 | + 'from' => array( |
|
| 1109 | 1109 | '0' => ':global', |
| 1110 | - ), |
|
| 1110 | + ), |
|
| 1111 | + ), |
|
| 1111 | 1112 | ), |
| 1112 | - ), |
|
| 1113 | 1113 | ), |
| 1114 | 1114 | '#name' => 'boinccore_rules_action_mail_to_admins', |
| 1115 | 1115 | '#info' => array( |
| 1116 | - 'label' => 'Notify admins via email', |
|
| 1117 | - 'module' => 'BOINC core', |
|
| 1118 | - 'eval input' => array( |
|
| 1116 | + 'label' => 'Notify admins via email', |
|
| 1117 | + 'module' => 'BOINC core', |
|
| 1118 | + 'eval input' => array( |
|
| 1119 | 1119 | '0' => 'subject', |
| 1120 | 1120 | '1' => 'message', |
| 1121 | 1121 | '2' => 'from', |
| 1122 | - ), |
|
| 1122 | + ), |
|
| 1123 | 1123 | ), |
| 1124 | 1124 | '#weight' => 0.0, |
| 1125 | - ), |
|
| 1125 | + ), |
|
| 1126 | 1126 | ), |
| 1127 | 1127 | '#version' => 6003, |
| 1128 | - ), |
|
| 1129 | - 'rules_offensive_comment_reported_hostile' => array( |
|
| 1128 | + ), |
|
| 1129 | + 'rules_offensive_comment_reported_hostile' => array( |
|
| 1130 | 1130 | '#type' => 'rule', |
| 1131 | 1131 | '#set' => 'event_flag_flagged_abuse_comment_3', |
| 1132 | 1132 | '#label' => 'Offensive comment reported - Hostile', |
| 1133 | 1133 | '#active' => 1, |
| 1134 | 1134 | '#weight' => '0', |
| 1135 | 1135 | '#categories' => array( |
| 1136 | - '0' => 'boinc_standard', |
|
| 1137 | - '1' => 'moderator notification', |
|
| 1136 | + '0' => 'boinc_standard', |
|
| 1137 | + '1' => 'moderator notification', |
|
| 1138 | 1138 | ), |
| 1139 | 1139 | '#status' => 'default', |
| 1140 | 1140 | '#conditions' => array(), |
| 1141 | 1141 | '#actions' => array( |
| 1142 | - '0' => array( |
|
| 1142 | + '0' => array( |
|
| 1143 | 1143 | '#type' => 'action', |
| 1144 | 1144 | '#settings' => array( |
| 1145 | - 'from' => '', |
|
| 1146 | - 'subject' => 'Report of hostile language in [node:type] comment at [:global:site-name]', |
|
| 1147 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1145 | + 'from' => '', |
|
| 1146 | + 'subject' => 'Report of hostile language in [node:type] comment at [:global:site-name]', |
|
| 1147 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1148 | 1148 | containing hostile language for the [:global:site-name] site: |
| 1149 | 1149 | |
| 1150 | 1150 | <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid] |
| 1151 | 1151 | |
| 1152 | 1152 | Total reports of this comment: [comment:flag-abuse-comment-meta-count]', |
| 1153 | - '#eval input' => array( |
|
| 1153 | + '#eval input' => array( |
|
| 1154 | 1154 | 'token_rules_input_evaluator' => array( |
| 1155 | - 'subject' => array( |
|
| 1155 | + 'subject' => array( |
|
| 1156 | 1156 | '0' => 'node', |
| 1157 | 1157 | '1' => ':global', |
| 1158 | - ), |
|
| 1159 | - 'message' => array( |
|
| 1158 | + ), |
|
| 1159 | + 'message' => array( |
|
| 1160 | 1160 | '0' => 'flagging_user', |
| 1161 | 1161 | '1' => 'comment', |
| 1162 | 1162 | '2' => 'node', |
| 1163 | 1163 | '3' => ':global', |
| 1164 | - ), |
|
| 1165 | - 'from' => array( |
|
| 1164 | + ), |
|
| 1165 | + 'from' => array( |
|
| 1166 | 1166 | '0' => ':global', |
| 1167 | - ), |
|
| 1167 | + ), |
|
| 1168 | 1168 | ), |
| 1169 | 1169 | 'rules_input_evaluator_php' => array( |
| 1170 | - 'message' => array(), |
|
| 1170 | + 'message' => array(), |
|
| 1171 | + ), |
|
| 1171 | 1172 | ), |
| 1172 | - ), |
|
| 1173 | 1173 | ), |
| 1174 | 1174 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1175 | 1175 | '#info' => array( |
| 1176 | - 'label' => 'Notify moderators via email', |
|
| 1177 | - 'module' => 'BOINC core', |
|
| 1178 | - 'eval input' => array( |
|
| 1176 | + 'label' => 'Notify moderators via email', |
|
| 1177 | + 'module' => 'BOINC core', |
|
| 1178 | + 'eval input' => array( |
|
| 1179 | 1179 | '0' => 'subject', |
| 1180 | 1180 | '1' => 'message', |
| 1181 | 1181 | '2' => 'from', |
| 1182 | - ), |
|
| 1182 | + ), |
|
| 1183 | 1183 | ), |
| 1184 | 1184 | '#weight' => 0.0, |
| 1185 | - ), |
|
| 1185 | + ), |
|
| 1186 | 1186 | ), |
| 1187 | 1187 | '#version' => 6003, |
| 1188 | - ), |
|
| 1189 | - 'rules_offensive_comment_reported_link' => array( |
|
| 1188 | + ), |
|
| 1189 | + 'rules_offensive_comment_reported_link' => array( |
|
| 1190 | 1190 | '#type' => 'rule', |
| 1191 | 1191 | '#set' => 'event_flag_flagged_abuse_comment_2', |
| 1192 | 1192 | '#label' => 'Offensive comment reported - Link', |
| 1193 | 1193 | '#active' => 1, |
| 1194 | 1194 | '#weight' => '0', |
| 1195 | 1195 | '#categories' => array( |
| 1196 | - '0' => 'boinc_standard', |
|
| 1197 | - '1' => 'moderator notification', |
|
| 1196 | + '0' => 'boinc_standard', |
|
| 1197 | + '1' => 'moderator notification', |
|
| 1198 | 1198 | ), |
| 1199 | 1199 | '#status' => 'default', |
| 1200 | 1200 | '#conditions' => array(), |
| 1201 | 1201 | '#actions' => array( |
| 1202 | - '0' => array( |
|
| 1202 | + '0' => array( |
|
| 1203 | 1203 | '#type' => 'action', |
| 1204 | 1204 | '#settings' => array( |
| 1205 | - 'from' => '', |
|
| 1206 | - 'subject' => 'Report of inappropriate link in [node:type] comment at [:global:site-name]', |
|
| 1207 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1205 | + 'from' => '', |
|
| 1206 | + 'subject' => 'Report of inappropriate link in [node:type] comment at [:global:site-name]', |
|
| 1207 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1208 | 1208 | containing an offensive or inappropriate link for the [:global:site-name] site: |
| 1209 | 1209 | |
| 1210 | 1210 | <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid] |
| 1211 | 1211 | |
| 1212 | 1212 | Total reports of this comment: [comment:flag-abuse-comment-meta-count]', |
| 1213 | - '#eval input' => array( |
|
| 1213 | + '#eval input' => array( |
|
| 1214 | 1214 | 'token_rules_input_evaluator' => array( |
| 1215 | - 'subject' => array( |
|
| 1215 | + 'subject' => array( |
|
| 1216 | 1216 | '0' => 'node', |
| 1217 | 1217 | '1' => ':global', |
| 1218 | - ), |
|
| 1219 | - 'message' => array( |
|
| 1218 | + ), |
|
| 1219 | + 'message' => array( |
|
| 1220 | 1220 | '0' => 'flagging_user', |
| 1221 | 1221 | '1' => 'comment', |
| 1222 | 1222 | '2' => 'node', |
| 1223 | 1223 | '3' => ':global', |
| 1224 | - ), |
|
| 1225 | - 'from' => array( |
|
| 1224 | + ), |
|
| 1225 | + 'from' => array( |
|
| 1226 | 1226 | '0' => ':global', |
| 1227 | - ), |
|
| 1227 | + ), |
|
| 1228 | 1228 | ), |
| 1229 | 1229 | 'rules_input_evaluator_php' => array( |
| 1230 | - 'message' => array(), |
|
| 1230 | + 'message' => array(), |
|
| 1231 | + ), |
|
| 1231 | 1232 | ), |
| 1232 | - ), |
|
| 1233 | 1233 | ), |
| 1234 | 1234 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1235 | 1235 | '#info' => array( |
| 1236 | - 'label' => 'Notify moderators via email', |
|
| 1237 | - 'module' => 'BOINC core', |
|
| 1238 | - 'eval input' => array( |
|
| 1236 | + 'label' => 'Notify moderators via email', |
|
| 1237 | + 'module' => 'BOINC core', |
|
| 1238 | + 'eval input' => array( |
|
| 1239 | 1239 | '0' => 'subject', |
| 1240 | 1240 | '1' => 'message', |
| 1241 | 1241 | '2' => 'from', |
| 1242 | - ), |
|
| 1242 | + ), |
|
| 1243 | 1243 | ), |
| 1244 | 1244 | '#weight' => 0.0, |
| 1245 | - ), |
|
| 1245 | + ), |
|
| 1246 | 1246 | ), |
| 1247 | 1247 | '#version' => 6003, |
| 1248 | - ), |
|
| 1249 | - 'rules_offensive_comment_reported_not_kid_friendly' => array( |
|
| 1248 | + ), |
|
| 1249 | + 'rules_offensive_comment_reported_not_kid_friendly' => array( |
|
| 1250 | 1250 | '#type' => 'rule', |
| 1251 | 1251 | '#set' => 'event_flag_flagged_abuse_comment_4', |
| 1252 | 1252 | '#label' => 'Offensive comment reported - Not Kid Friendly', |
| 1253 | 1253 | '#active' => 1, |
| 1254 | 1254 | '#weight' => '0', |
| 1255 | 1255 | '#categories' => array( |
| 1256 | - '0' => 'boinc_standard', |
|
| 1257 | - '1' => 'moderator notification', |
|
| 1256 | + '0' => 'boinc_standard', |
|
| 1257 | + '1' => 'moderator notification', |
|
| 1258 | 1258 | ), |
| 1259 | 1259 | '#status' => 'default', |
| 1260 | 1260 | '#conditions' => array(), |
| 1261 | 1261 | '#actions' => array( |
| 1262 | - '0' => array( |
|
| 1262 | + '0' => array( |
|
| 1263 | 1263 | '#type' => 'action', |
| 1264 | 1264 | '#settings' => array( |
| 1265 | - 'from' => '', |
|
| 1266 | - 'subject' => 'Report of non Kid-friendly language in [node:type] comment at [:global:site-name]', |
|
| 1267 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1265 | + 'from' => '', |
|
| 1266 | + 'subject' => 'Report of non Kid-friendly language in [node:type] comment at [:global:site-name]', |
|
| 1267 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1268 | 1268 | containing non Kid-friendly language for the [:global:site-name] site: |
| 1269 | 1269 | |
| 1270 | 1270 | <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid] |
| 1271 | 1271 | |
| 1272 | 1272 | Total reports of this comment: [comment:flag-abuse-comment-meta-count]', |
| 1273 | - '#eval input' => array( |
|
| 1273 | + '#eval input' => array( |
|
| 1274 | 1274 | 'token_rules_input_evaluator' => array( |
| 1275 | - 'subject' => array( |
|
| 1275 | + 'subject' => array( |
|
| 1276 | 1276 | '0' => 'node', |
| 1277 | 1277 | '1' => ':global', |
| 1278 | - ), |
|
| 1279 | - 'message' => array( |
|
| 1278 | + ), |
|
| 1279 | + 'message' => array( |
|
| 1280 | 1280 | '0' => 'flagging_user', |
| 1281 | 1281 | '1' => 'comment', |
| 1282 | 1282 | '2' => 'node', |
| 1283 | 1283 | '3' => ':global', |
| 1284 | - ), |
|
| 1285 | - 'from' => array( |
|
| 1284 | + ), |
|
| 1285 | + 'from' => array( |
|
| 1286 | 1286 | '0' => ':global', |
| 1287 | - ), |
|
| 1287 | + ), |
|
| 1288 | 1288 | ), |
| 1289 | 1289 | 'rules_input_evaluator_php' => array( |
| 1290 | - 'message' => array(), |
|
| 1290 | + 'message' => array(), |
|
| 1291 | + ), |
|
| 1291 | 1292 | ), |
| 1292 | - ), |
|
| 1293 | 1293 | ), |
| 1294 | 1294 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1295 | 1295 | '#info' => array( |
| 1296 | - 'label' => 'Notify moderators via email', |
|
| 1297 | - 'module' => 'BOINC core', |
|
| 1298 | - 'eval input' => array( |
|
| 1296 | + 'label' => 'Notify moderators via email', |
|
| 1297 | + 'module' => 'BOINC core', |
|
| 1298 | + 'eval input' => array( |
|
| 1299 | 1299 | '0' => 'subject', |
| 1300 | 1300 | '1' => 'message', |
| 1301 | 1301 | '2' => 'from', |
| 1302 | - ), |
|
| 1302 | + ), |
|
| 1303 | 1303 | ), |
| 1304 | 1304 | '#weight' => 0.0, |
| 1305 | - ), |
|
| 1305 | + ), |
|
| 1306 | 1306 | ), |
| 1307 | 1307 | '#version' => 6003, |
| 1308 | - ), |
|
| 1309 | - 'rules_offensive_comment_reported_other' => array( |
|
| 1308 | + ), |
|
| 1309 | + 'rules_offensive_comment_reported_other' => array( |
|
| 1310 | 1310 | '#type' => 'rule', |
| 1311 | 1311 | '#set' => 'event_flag_flagged_abuse_comment_5', |
| 1312 | 1312 | '#label' => 'Offensive comment reported - Other', |
| 1313 | 1313 | '#active' => 1, |
| 1314 | 1314 | '#weight' => '0', |
| 1315 | 1315 | '#categories' => array( |
| 1316 | - '0' => 'boinc_standard', |
|
| 1317 | - '1' => 'moderator notification', |
|
| 1316 | + '0' => 'boinc_standard', |
|
| 1317 | + '1' => 'moderator notification', |
|
| 1318 | 1318 | ), |
| 1319 | 1319 | '#status' => 'default', |
| 1320 | 1320 | '#conditions' => array(), |
| 1321 | 1321 | '#actions' => array( |
| 1322 | - '0' => array( |
|
| 1322 | + '0' => array( |
|
| 1323 | 1323 | '#type' => 'action', |
| 1324 | 1324 | '#settings' => array( |
| 1325 | - 'from' => '', |
|
| 1326 | - 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 1327 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1325 | + 'from' => '', |
|
| 1326 | + 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 1327 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content as |
|
| 1328 | 1328 | being offensive or inappropriate for the [:global:site-name] site, with reason \'Other\': |
| 1329 | 1329 | |
| 1330 | 1330 | <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid] |
| 1331 | 1331 | |
| 1332 | 1332 | Total reports of this comment: [comment:flag-abuse-comment-meta-count]', |
| 1333 | - '#eval input' => array( |
|
| 1333 | + '#eval input' => array( |
|
| 1334 | 1334 | 'token_rules_input_evaluator' => array( |
| 1335 | - 'subject' => array( |
|
| 1335 | + 'subject' => array( |
|
| 1336 | 1336 | '0' => 'node', |
| 1337 | 1337 | '1' => ':global', |
| 1338 | - ), |
|
| 1339 | - 'message' => array( |
|
| 1338 | + ), |
|
| 1339 | + 'message' => array( |
|
| 1340 | 1340 | '0' => 'flagging_user', |
| 1341 | 1341 | '1' => 'comment', |
| 1342 | 1342 | '2' => 'node', |
| 1343 | 1343 | '3' => ':global', |
| 1344 | - ), |
|
| 1345 | - 'from' => array( |
|
| 1344 | + ), |
|
| 1345 | + 'from' => array( |
|
| 1346 | 1346 | '0' => ':global', |
| 1347 | - ), |
|
| 1347 | + ), |
|
| 1348 | 1348 | ), |
| 1349 | 1349 | 'rules_input_evaluator_php' => array( |
| 1350 | - 'message' => array(), |
|
| 1350 | + 'message' => array(), |
|
| 1351 | + ), |
|
| 1351 | 1352 | ), |
| 1352 | - ), |
|
| 1353 | 1353 | ), |
| 1354 | 1354 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1355 | 1355 | '#info' => array( |
| 1356 | - 'label' => 'Notify moderators via email', |
|
| 1357 | - 'module' => 'BOINC core', |
|
| 1358 | - 'eval input' => array( |
|
| 1356 | + 'label' => 'Notify moderators via email', |
|
| 1357 | + 'module' => 'BOINC core', |
|
| 1358 | + 'eval input' => array( |
|
| 1359 | 1359 | '0' => 'subject', |
| 1360 | 1360 | '1' => 'message', |
| 1361 | 1361 | '2' => 'from', |
| 1362 | - ), |
|
| 1362 | + ), |
|
| 1363 | 1363 | ), |
| 1364 | 1364 | '#weight' => 0.0, |
| 1365 | - ), |
|
| 1365 | + ), |
|
| 1366 | 1366 | ), |
| 1367 | 1367 | '#version' => 6003, |
| 1368 | - ), |
|
| 1369 | - 'rules_offensive_comment_reported_spam' => array( |
|
| 1368 | + ), |
|
| 1369 | + 'rules_offensive_comment_reported_spam' => array( |
|
| 1370 | 1370 | '#type' => 'rule', |
| 1371 | 1371 | '#set' => 'event_flag_flagged_abuse_comment_1', |
| 1372 | 1372 | '#label' => 'Offensive comment reported - SPAM', |
| 1373 | 1373 | '#active' => 1, |
| 1374 | 1374 | '#weight' => '0', |
| 1375 | 1375 | '#categories' => array( |
| 1376 | - '0' => 'boinc_standard', |
|
| 1377 | - '1' => 'moderator notification', |
|
| 1376 | + '0' => 'boinc_standard', |
|
| 1377 | + '1' => 'moderator notification', |
|
| 1378 | 1378 | ), |
| 1379 | 1379 | '#status' => 'default', |
| 1380 | 1380 | '#conditions' => array(), |
| 1381 | 1381 | '#actions' => array( |
| 1382 | - '0' => array( |
|
| 1382 | + '0' => array( |
|
| 1383 | 1383 | '#type' => 'action', |
| 1384 | 1384 | '#settings' => array( |
| 1385 | - 'from' => '', |
|
| 1386 | - 'subject' => 'Report of SPAM [node:type] comment at [:global:site-name]', |
|
| 1387 | - 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content |
|
| 1385 | + 'from' => '', |
|
| 1386 | + 'subject' => 'Report of SPAM [node:type] comment at [:global:site-name]', |
|
| 1387 | + 'message' => '[flagging_user:display-name] has reported the following comment on [node:type] content |
|
| 1388 | 1388 | as being SPAM for the [:global:site-name] site: |
| 1389 | 1389 | |
| 1390 | 1390 | <?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/goto/comment/[comment:comment-cid] |
| 1391 | 1391 | |
| 1392 | 1392 | Total reports of this comment: [comment:flag-abuse-comment-meta-count]', |
| 1393 | - '#eval input' => array( |
|
| 1393 | + '#eval input' => array( |
|
| 1394 | 1394 | 'token_rules_input_evaluator' => array( |
| 1395 | - 'subject' => array( |
|
| 1395 | + 'subject' => array( |
|
| 1396 | 1396 | '0' => 'node', |
| 1397 | 1397 | '1' => ':global', |
| 1398 | - ), |
|
| 1399 | - 'message' => array( |
|
| 1398 | + ), |
|
| 1399 | + 'message' => array( |
|
| 1400 | 1400 | '0' => 'flagging_user', |
| 1401 | 1401 | '1' => 'comment', |
| 1402 | 1402 | '2' => 'node', |
| 1403 | 1403 | '3' => ':global', |
| 1404 | - ), |
|
| 1405 | - 'from' => array( |
|
| 1404 | + ), |
|
| 1405 | + 'from' => array( |
|
| 1406 | 1406 | '0' => ':global', |
| 1407 | - ), |
|
| 1407 | + ), |
|
| 1408 | 1408 | ), |
| 1409 | 1409 | 'rules_input_evaluator_php' => array( |
| 1410 | - 'message' => array(), |
|
| 1410 | + 'message' => array(), |
|
| 1411 | + ), |
|
| 1411 | 1412 | ), |
| 1412 | - ), |
|
| 1413 | 1413 | ), |
| 1414 | 1414 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1415 | 1415 | '#info' => array( |
| 1416 | - 'label' => 'Notify moderators via email', |
|
| 1417 | - 'module' => 'BOINC core', |
|
| 1418 | - 'eval input' => array( |
|
| 1416 | + 'label' => 'Notify moderators via email', |
|
| 1417 | + 'module' => 'BOINC core', |
|
| 1418 | + 'eval input' => array( |
|
| 1419 | 1419 | '0' => 'subject', |
| 1420 | 1420 | '1' => 'message', |
| 1421 | 1421 | '2' => 'from', |
| 1422 | - ), |
|
| 1422 | + ), |
|
| 1423 | 1423 | ), |
| 1424 | 1424 | '#weight' => 0.0, |
| 1425 | - ), |
|
| 1425 | + ), |
|
| 1426 | 1426 | ), |
| 1427 | 1427 | '#version' => 6003, |
| 1428 | - ), |
|
| 1429 | - 'rules_offensive_content_reported_hostile' => array( |
|
| 1428 | + ), |
|
| 1429 | + 'rules_offensive_content_reported_hostile' => array( |
|
| 1430 | 1430 | '#type' => 'rule', |
| 1431 | 1431 | '#set' => 'event_flag_flagged_abuse_node_3', |
| 1432 | 1432 | '#label' => 'Offensive content reported - Hostile', |
| 1433 | 1433 | '#active' => 1, |
| 1434 | 1434 | '#weight' => '0', |
| 1435 | 1435 | '#categories' => array( |
| 1436 | - '0' => 'boinc_standard', |
|
| 1437 | - '1' => 'moderator notification', |
|
| 1436 | + '0' => 'boinc_standard', |
|
| 1437 | + '1' => 'moderator notification', |
|
| 1438 | 1438 | ), |
| 1439 | 1439 | '#status' => 'default', |
| 1440 | 1440 | '#conditions' => array(), |
| 1441 | 1441 | '#actions' => array( |
| 1442 | - '0' => array( |
|
| 1442 | + '0' => array( |
|
| 1443 | 1443 | '#type' => 'action', |
| 1444 | 1444 | '#settings' => array( |
| 1445 | - 'from' => '', |
|
| 1446 | - 'subject' => 'Report of hostile language in [node:type] content at [:global:site-name]', |
|
| 1447 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1445 | + 'from' => '', |
|
| 1446 | + 'subject' => 'Report of hostile language in [node:type] content at [:global:site-name]', |
|
| 1447 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1448 | 1448 | as hostile language for the [:global:site-name] site: |
| 1449 | 1449 | |
| 1450 | 1450 | <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?> |
| 1451 | 1451 | |
| 1452 | 1452 | Total reports of this content: [node:flag-abuse-node-meta-count]', |
| 1453 | - '#eval input' => array( |
|
| 1453 | + '#eval input' => array( |
|
| 1454 | 1454 | 'token_rules_input_evaluator' => array( |
| 1455 | - 'subject' => array( |
|
| 1455 | + 'subject' => array( |
|
| 1456 | 1456 | '0' => 'node', |
| 1457 | 1457 | '1' => ':global', |
| 1458 | - ), |
|
| 1459 | - 'message' => array( |
|
| 1458 | + ), |
|
| 1459 | + 'message' => array( |
|
| 1460 | 1460 | '0' => 'flagging_user', |
| 1461 | 1461 | '1' => 'node', |
| 1462 | 1462 | '2' => ':global', |
| 1463 | - ), |
|
| 1464 | - 'from' => array( |
|
| 1463 | + ), |
|
| 1464 | + 'from' => array( |
|
| 1465 | 1465 | '0' => ':global', |
| 1466 | - ), |
|
| 1466 | + ), |
|
| 1467 | 1467 | ), |
| 1468 | 1468 | 'rules_input_evaluator_php' => array( |
| 1469 | - 'message' => array( |
|
| 1469 | + 'message' => array( |
|
| 1470 | 1470 | '0' => 'node', |
| 1471 | - ), |
|
| 1471 | + ), |
|
| 1472 | + ), |
|
| 1472 | 1473 | ), |
| 1473 | - ), |
|
| 1474 | 1474 | ), |
| 1475 | 1475 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1476 | 1476 | '#info' => array( |
| 1477 | - 'label' => 'Notify moderators via email', |
|
| 1478 | - 'module' => 'BOINC core', |
|
| 1479 | - 'eval input' => array( |
|
| 1477 | + 'label' => 'Notify moderators via email', |
|
| 1478 | + 'module' => 'BOINC core', |
|
| 1479 | + 'eval input' => array( |
|
| 1480 | 1480 | '0' => 'subject', |
| 1481 | 1481 | '1' => 'message', |
| 1482 | 1482 | '2' => 'from', |
| 1483 | - ), |
|
| 1483 | + ), |
|
| 1484 | 1484 | ), |
| 1485 | 1485 | '#weight' => 0.0, |
| 1486 | - ), |
|
| 1486 | + ), |
|
| 1487 | 1487 | ), |
| 1488 | 1488 | '#version' => 6003, |
| 1489 | - ), |
|
| 1490 | - 'rules_offensive_content_reported_link' => array( |
|
| 1489 | + ), |
|
| 1490 | + 'rules_offensive_content_reported_link' => array( |
|
| 1491 | 1491 | '#type' => 'rule', |
| 1492 | 1492 | '#set' => 'event_flag_flagged_abuse_node_2', |
| 1493 | 1493 | '#label' => 'Offensive content reported - Link', |
| 1494 | 1494 | '#active' => 1, |
| 1495 | 1495 | '#weight' => '0', |
| 1496 | 1496 | '#categories' => array( |
| 1497 | - '0' => 'boinc_standard', |
|
| 1498 | - '1' => 'moderator notification', |
|
| 1497 | + '0' => 'boinc_standard', |
|
| 1498 | + '1' => 'moderator notification', |
|
| 1499 | 1499 | ), |
| 1500 | 1500 | '#status' => 'default', |
| 1501 | 1501 | '#conditions' => array(), |
| 1502 | 1502 | '#actions' => array( |
| 1503 | - '0' => array( |
|
| 1503 | + '0' => array( |
|
| 1504 | 1504 | '#type' => 'action', |
| 1505 | 1505 | '#settings' => array( |
| 1506 | - 'from' => '', |
|
| 1507 | - 'subject' => 'Report of inappropriate link in [node:type] content at [:global:site-name]', |
|
| 1508 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1506 | + 'from' => '', |
|
| 1507 | + 'subject' => 'Report of inappropriate link in [node:type] content at [:global:site-name]', |
|
| 1508 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1509 | 1509 | as containing an offensive or inappropriate link for the [:global:site-name] site: |
| 1510 | 1510 | |
| 1511 | 1511 | <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?> |
| 1512 | 1512 | |
| 1513 | 1513 | Total reports of this content: [node:flag-abuse-node-meta-count]', |
| 1514 | - '#eval input' => array( |
|
| 1514 | + '#eval input' => array( |
|
| 1515 | 1515 | 'token_rules_input_evaluator' => array( |
| 1516 | - 'subject' => array( |
|
| 1516 | + 'subject' => array( |
|
| 1517 | 1517 | '0' => 'node', |
| 1518 | 1518 | '1' => ':global', |
| 1519 | - ), |
|
| 1520 | - 'message' => array( |
|
| 1519 | + ), |
|
| 1520 | + 'message' => array( |
|
| 1521 | 1521 | '0' => 'flagging_user', |
| 1522 | 1522 | '1' => 'node', |
| 1523 | 1523 | '2' => ':global', |
| 1524 | - ), |
|
| 1525 | - 'from' => array( |
|
| 1524 | + ), |
|
| 1525 | + 'from' => array( |
|
| 1526 | 1526 | '0' => ':global', |
| 1527 | - ), |
|
| 1527 | + ), |
|
| 1528 | 1528 | ), |
| 1529 | 1529 | 'rules_input_evaluator_php' => array( |
| 1530 | - 'message' => array( |
|
| 1530 | + 'message' => array( |
|
| 1531 | 1531 | '0' => 'node', |
| 1532 | - ), |
|
| 1532 | + ), |
|
| 1533 | + ), |
|
| 1533 | 1534 | ), |
| 1534 | - ), |
|
| 1535 | 1535 | ), |
| 1536 | 1536 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1537 | 1537 | '#info' => array( |
| 1538 | - 'label' => 'Notify moderators via email', |
|
| 1539 | - 'module' => 'BOINC core', |
|
| 1540 | - 'eval input' => array( |
|
| 1538 | + 'label' => 'Notify moderators via email', |
|
| 1539 | + 'module' => 'BOINC core', |
|
| 1540 | + 'eval input' => array( |
|
| 1541 | 1541 | '0' => 'subject', |
| 1542 | 1542 | '1' => 'message', |
| 1543 | 1543 | '2' => 'from', |
| 1544 | - ), |
|
| 1544 | + ), |
|
| 1545 | 1545 | ), |
| 1546 | 1546 | '#weight' => 0.0, |
| 1547 | - ), |
|
| 1547 | + ), |
|
| 1548 | 1548 | ), |
| 1549 | 1549 | '#version' => 6003, |
| 1550 | - ), |
|
| 1551 | - 'rules_offensive_content_reported_not_kid_friendly' => array( |
|
| 1550 | + ), |
|
| 1551 | + 'rules_offensive_content_reported_not_kid_friendly' => array( |
|
| 1552 | 1552 | '#type' => 'rule', |
| 1553 | 1553 | '#set' => 'event_flag_flagged_abuse_node_4', |
| 1554 | 1554 | '#label' => 'Offensive content reported - Not Kid Friendly', |
| 1555 | 1555 | '#active' => 1, |
| 1556 | 1556 | '#weight' => '0', |
| 1557 | 1557 | '#categories' => array( |
| 1558 | - '0' => 'boinc_standard', |
|
| 1559 | - '1' => 'moderator notification', |
|
| 1558 | + '0' => 'boinc_standard', |
|
| 1559 | + '1' => 'moderator notification', |
|
| 1560 | 1560 | ), |
| 1561 | 1561 | '#status' => 'default', |
| 1562 | 1562 | '#conditions' => array(), |
| 1563 | 1563 | '#actions' => array( |
| 1564 | - '0' => array( |
|
| 1564 | + '0' => array( |
|
| 1565 | 1565 | '#type' => 'action', |
| 1566 | 1566 | '#settings' => array( |
| 1567 | - 'from' => '', |
|
| 1568 | - 'subject' => 'Report of non Kid-friendly language in [node:type] content at [:global:site-name]', |
|
| 1569 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1567 | + 'from' => '', |
|
| 1568 | + 'subject' => 'Report of non Kid-friendly language in [node:type] content at [:global:site-name]', |
|
| 1569 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1570 | 1570 | as containing non Kid-friendly language for the [:global:site-name] site: |
| 1571 | 1571 | |
| 1572 | 1572 | <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?> |
| 1573 | 1573 | |
| 1574 | 1574 | Total reports of this content: [node:flag-abuse-node-meta-count]', |
| 1575 | - '#eval input' => array( |
|
| 1575 | + '#eval input' => array( |
|
| 1576 | 1576 | 'token_rules_input_evaluator' => array( |
| 1577 | - 'subject' => array( |
|
| 1577 | + 'subject' => array( |
|
| 1578 | 1578 | '0' => 'node', |
| 1579 | 1579 | '1' => ':global', |
| 1580 | - ), |
|
| 1581 | - 'message' => array( |
|
| 1580 | + ), |
|
| 1581 | + 'message' => array( |
|
| 1582 | 1582 | '0' => 'flagging_user', |
| 1583 | 1583 | '1' => 'node', |
| 1584 | 1584 | '2' => ':global', |
| 1585 | - ), |
|
| 1586 | - 'from' => array( |
|
| 1585 | + ), |
|
| 1586 | + 'from' => array( |
|
| 1587 | 1587 | '0' => ':global', |
| 1588 | - ), |
|
| 1588 | + ), |
|
| 1589 | 1589 | ), |
| 1590 | 1590 | 'rules_input_evaluator_php' => array( |
| 1591 | - 'message' => array( |
|
| 1591 | + 'message' => array( |
|
| 1592 | 1592 | '0' => 'node', |
| 1593 | - ), |
|
| 1593 | + ), |
|
| 1594 | + ), |
|
| 1594 | 1595 | ), |
| 1595 | - ), |
|
| 1596 | 1596 | ), |
| 1597 | 1597 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1598 | 1598 | '#info' => array( |
| 1599 | - 'label' => 'Notify moderators via email', |
|
| 1600 | - 'module' => 'BOINC core', |
|
| 1601 | - 'eval input' => array( |
|
| 1599 | + 'label' => 'Notify moderators via email', |
|
| 1600 | + 'module' => 'BOINC core', |
|
| 1601 | + 'eval input' => array( |
|
| 1602 | 1602 | '0' => 'subject', |
| 1603 | 1603 | '1' => 'message', |
| 1604 | 1604 | '2' => 'from', |
| 1605 | - ), |
|
| 1605 | + ), |
|
| 1606 | 1606 | ), |
| 1607 | 1607 | '#weight' => 0.0, |
| 1608 | - ), |
|
| 1608 | + ), |
|
| 1609 | 1609 | ), |
| 1610 | 1610 | '#version' => 6003, |
| 1611 | - ), |
|
| 1612 | - 'rules_offensive_content_reported_other' => array( |
|
| 1611 | + ), |
|
| 1612 | + 'rules_offensive_content_reported_other' => array( |
|
| 1613 | 1613 | '#type' => 'rule', |
| 1614 | 1614 | '#set' => 'event_flag_flagged_abuse_node_4', |
| 1615 | 1615 | '#label' => 'Offensive content reported - Other', |
| 1616 | 1616 | '#active' => 1, |
| 1617 | 1617 | '#weight' => '0', |
| 1618 | 1618 | '#categories' => array( |
| 1619 | - '0' => 'boinc_standard', |
|
| 1620 | - '1' => 'moderator notification', |
|
| 1619 | + '0' => 'boinc_standard', |
|
| 1620 | + '1' => 'moderator notification', |
|
| 1621 | 1621 | ), |
| 1622 | 1622 | '#status' => 'default', |
| 1623 | 1623 | '#conditions' => array(), |
| 1624 | 1624 | '#actions' => array( |
| 1625 | - '0' => array( |
|
| 1625 | + '0' => array( |
|
| 1626 | 1626 | '#type' => 'action', |
| 1627 | 1627 | '#settings' => array( |
| 1628 | - 'from' => '', |
|
| 1629 | - 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 1630 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1628 | + 'from' => '', |
|
| 1629 | + 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 1630 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1631 | 1631 | as being offensive or inappropriate for the [:global:site-name] site: |
| 1632 | 1632 | |
| 1633 | 1633 | <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?> |
| 1634 | 1634 | |
| 1635 | 1635 | Total reports of this content: [node:flag-abuse-node-meta-count]', |
| 1636 | - '#eval input' => array( |
|
| 1636 | + '#eval input' => array( |
|
| 1637 | 1637 | 'token_rules_input_evaluator' => array( |
| 1638 | - 'subject' => array( |
|
| 1638 | + 'subject' => array( |
|
| 1639 | 1639 | '0' => 'node', |
| 1640 | 1640 | '1' => ':global', |
| 1641 | - ), |
|
| 1642 | - 'message' => array( |
|
| 1641 | + ), |
|
| 1642 | + 'message' => array( |
|
| 1643 | 1643 | '0' => 'flagging_user', |
| 1644 | 1644 | '1' => 'node', |
| 1645 | 1645 | '2' => ':global', |
| 1646 | - ), |
|
| 1647 | - 'from' => array( |
|
| 1646 | + ), |
|
| 1647 | + 'from' => array( |
|
| 1648 | 1648 | '0' => ':global', |
| 1649 | - ), |
|
| 1649 | + ), |
|
| 1650 | 1650 | ), |
| 1651 | 1651 | 'rules_input_evaluator_php' => array( |
| 1652 | - 'message' => array( |
|
| 1652 | + 'message' => array( |
|
| 1653 | 1653 | '0' => 'node', |
| 1654 | - ), |
|
| 1654 | + ), |
|
| 1655 | + ), |
|
| 1655 | 1656 | ), |
| 1656 | - ), |
|
| 1657 | 1657 | ), |
| 1658 | 1658 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1659 | 1659 | '#info' => array( |
| 1660 | - 'label' => 'Notify moderators via email', |
|
| 1661 | - 'module' => 'BOINC core', |
|
| 1662 | - 'eval input' => array( |
|
| 1660 | + 'label' => 'Notify moderators via email', |
|
| 1661 | + 'module' => 'BOINC core', |
|
| 1662 | + 'eval input' => array( |
|
| 1663 | 1663 | '0' => 'subject', |
| 1664 | 1664 | '1' => 'message', |
| 1665 | 1665 | '2' => 'from', |
| 1666 | - ), |
|
| 1666 | + ), |
|
| 1667 | 1667 | ), |
| 1668 | 1668 | '#weight' => 0.0, |
| 1669 | - ), |
|
| 1669 | + ), |
|
| 1670 | 1670 | ), |
| 1671 | 1671 | '#version' => 6003, |
| 1672 | - ), |
|
| 1673 | - 'rules_offensive_content_reported_spam' => array( |
|
| 1672 | + ), |
|
| 1673 | + 'rules_offensive_content_reported_spam' => array( |
|
| 1674 | 1674 | '#type' => 'rule', |
| 1675 | 1675 | '#set' => 'event_flag_flagged_abuse_node_1', |
| 1676 | 1676 | '#label' => 'Offensive content reported - SPAM', |
| 1677 | 1677 | '#active' => 1, |
| 1678 | 1678 | '#weight' => '0', |
| 1679 | 1679 | '#categories' => array( |
| 1680 | - '0' => 'boinc_standard', |
|
| 1681 | - '1' => 'moderator notification', |
|
| 1680 | + '0' => 'boinc_standard', |
|
| 1681 | + '1' => 'moderator notification', |
|
| 1682 | 1682 | ), |
| 1683 | 1683 | '#status' => 'default', |
| 1684 | 1684 | '#conditions' => array(), |
| 1685 | 1685 | '#actions' => array( |
| 1686 | - '0' => array( |
|
| 1686 | + '0' => array( |
|
| 1687 | 1687 | '#type' => 'action', |
| 1688 | 1688 | '#settings' => array( |
| 1689 | - 'from' => '', |
|
| 1690 | - 'subject' => 'Report of SPAM [node:type] content at [:global:site-name]', |
|
| 1691 | - 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1689 | + 'from' => '', |
|
| 1690 | + 'subject' => 'Report of SPAM [node:type] content at [:global:site-name]', |
|
| 1691 | + 'message' => '[flagging_user:display-name] has reported the following [node:type] content |
|
| 1692 | 1692 | as being SPAM for the [:global:site-name] site: |
| 1693 | 1693 | |
| 1694 | 1694 | <?php print url(\'node/\' . \\$node->nid, array(\'absolute\' => TRUE, \'language\' => \'en\')); ?> |
| 1695 | 1695 | |
| 1696 | 1696 | Total reports of this content: [node:flag-abuse-node-meta-count]', |
| 1697 | - '#eval input' => array( |
|
| 1697 | + '#eval input' => array( |
|
| 1698 | 1698 | 'token_rules_input_evaluator' => array( |
| 1699 | - 'subject' => array( |
|
| 1699 | + 'subject' => array( |
|
| 1700 | 1700 | '0' => 'node', |
| 1701 | 1701 | '1' => ':global', |
| 1702 | - ), |
|
| 1703 | - 'message' => array( |
|
| 1702 | + ), |
|
| 1703 | + 'message' => array( |
|
| 1704 | 1704 | '0' => 'flagging_user', |
| 1705 | 1705 | '1' => 'node', |
| 1706 | 1706 | '2' => ':global', |
| 1707 | - ), |
|
| 1708 | - 'from' => array( |
|
| 1707 | + ), |
|
| 1708 | + 'from' => array( |
|
| 1709 | 1709 | '0' => ':global', |
| 1710 | - ), |
|
| 1710 | + ), |
|
| 1711 | 1711 | ), |
| 1712 | 1712 | 'rules_input_evaluator_php' => array( |
| 1713 | - 'message' => array( |
|
| 1713 | + 'message' => array( |
|
| 1714 | 1714 | '0' => 'node', |
| 1715 | - ), |
|
| 1715 | + ), |
|
| 1716 | + ), |
|
| 1716 | 1717 | ), |
| 1717 | - ), |
|
| 1718 | 1718 | ), |
| 1719 | 1719 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1720 | 1720 | '#info' => array( |
| 1721 | - 'label' => 'Notify moderators via email', |
|
| 1722 | - 'module' => 'BOINC core', |
|
| 1723 | - 'eval input' => array( |
|
| 1721 | + 'label' => 'Notify moderators via email', |
|
| 1722 | + 'module' => 'BOINC core', |
|
| 1723 | + 'eval input' => array( |
|
| 1724 | 1724 | '0' => 'subject', |
| 1725 | 1725 | '1' => 'message', |
| 1726 | 1726 | '2' => 'from', |
| 1727 | - ), |
|
| 1727 | + ), |
|
| 1728 | 1728 | ), |
| 1729 | 1729 | '#weight' => 0.0, |
| 1730 | - ), |
|
| 1730 | + ), |
|
| 1731 | 1731 | ), |
| 1732 | 1732 | '#version' => 6003, |
| 1733 | - ), |
|
| 1734 | - 'rules_offensive_user_reported_link' => array( |
|
| 1733 | + ), |
|
| 1734 | + 'rules_offensive_user_reported_link' => array( |
|
| 1735 | 1735 | '#type' => 'rule', |
| 1736 | 1736 | '#set' => 'event_flag_flagged_abuse_user_2', |
| 1737 | 1737 | '#label' => 'Offensive user reported - Link', |
| 1738 | 1738 | '#active' => 1, |
| 1739 | 1739 | '#weight' => '0', |
| 1740 | 1740 | '#categories' => array( |
| 1741 | - '0' => 'boinc_standard', |
|
| 1742 | - '1' => 'moderator notification', |
|
| 1741 | + '0' => 'boinc_standard', |
|
| 1742 | + '1' => 'moderator notification', |
|
| 1743 | 1743 | ), |
| 1744 | 1744 | '#status' => 'default', |
| 1745 | 1745 | '#conditions' => array(), |
| 1746 | 1746 | '#actions' => array( |
| 1747 | - '0' => array( |
|
| 1747 | + '0' => array( |
|
| 1748 | 1748 | '#type' => 'action', |
| 1749 | 1749 | '#settings' => array( |
| 1750 | - 'from' => '', |
|
| 1751 | - 'subject' => 'Report of inappropriate link in user profile at [:global:site-name]', |
|
| 1752 | - 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1750 | + 'from' => '', |
|
| 1751 | + 'subject' => 'Report of inappropriate link in user profile at [:global:site-name]', |
|
| 1752 | + 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1753 | 1753 | inappropriate link in a user profile: |
| 1754 | 1754 | |
| 1755 | 1755 | <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid] |
| 1756 | 1756 | |
| 1757 | 1757 | Total current reports of this user: [account:flag-abuse-user-meta-count]', |
| 1758 | - '#eval input' => array( |
|
| 1758 | + '#eval input' => array( |
|
| 1759 | 1759 | 'token_rules_input_evaluator' => array( |
| 1760 | - 'subject' => array( |
|
| 1760 | + 'subject' => array( |
|
| 1761 | 1761 | '0' => ':global', |
| 1762 | - ), |
|
| 1763 | - 'message' => array( |
|
| 1762 | + ), |
|
| 1763 | + 'message' => array( |
|
| 1764 | 1764 | '0' => 'flagging_user', |
| 1765 | 1765 | '1' => 'account', |
| 1766 | 1766 | '2' => ':global', |
| 1767 | - ), |
|
| 1768 | - 'from' => array( |
|
| 1767 | + ), |
|
| 1768 | + 'from' => array( |
|
| 1769 | 1769 | '0' => ':global', |
| 1770 | - ), |
|
| 1770 | + ), |
|
| 1771 | 1771 | ), |
| 1772 | 1772 | 'rules_input_evaluator_php' => array( |
| 1773 | - 'message' => array(), |
|
| 1773 | + 'message' => array(), |
|
| 1774 | + ), |
|
| 1774 | 1775 | ), |
| 1775 | - ), |
|
| 1776 | 1776 | ), |
| 1777 | 1777 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1778 | 1778 | '#info' => array( |
| 1779 | - 'label' => 'Notify moderators via email', |
|
| 1780 | - 'module' => 'BOINC core', |
|
| 1781 | - 'eval input' => array( |
|
| 1779 | + 'label' => 'Notify moderators via email', |
|
| 1780 | + 'module' => 'BOINC core', |
|
| 1781 | + 'eval input' => array( |
|
| 1782 | 1782 | '0' => 'subject', |
| 1783 | 1783 | '1' => 'message', |
| 1784 | 1784 | '2' => 'from', |
| 1785 | - ), |
|
| 1785 | + ), |
|
| 1786 | 1786 | ), |
| 1787 | 1787 | '#weight' => 0.0, |
| 1788 | - ), |
|
| 1788 | + ), |
|
| 1789 | 1789 | ), |
| 1790 | 1790 | '#version' => 6003, |
| 1791 | - ), |
|
| 1792 | - 'rules_offensive_user_reported_not_kid_friendly' => array( |
|
| 1791 | + ), |
|
| 1792 | + 'rules_offensive_user_reported_not_kid_friendly' => array( |
|
| 1793 | 1793 | '#type' => 'rule', |
| 1794 | 1794 | '#set' => 'event_flag_flagged_abuse_user_3', |
| 1795 | 1795 | '#label' => 'Offensive user reported - Not Kid Friendly', |
| 1796 | 1796 | '#active' => 1, |
| 1797 | 1797 | '#weight' => '0', |
| 1798 | 1798 | '#categories' => array( |
| 1799 | - '0' => 'boinc_standard', |
|
| 1800 | - '1' => 'moderator notification', |
|
| 1799 | + '0' => 'boinc_standard', |
|
| 1800 | + '1' => 'moderator notification', |
|
| 1801 | 1801 | ), |
| 1802 | 1802 | '#status' => 'default', |
| 1803 | 1803 | '#conditions' => array(), |
| 1804 | 1804 | '#actions' => array( |
| 1805 | - '0' => array( |
|
| 1805 | + '0' => array( |
|
| 1806 | 1806 | '#type' => 'action', |
| 1807 | 1807 | '#settings' => array( |
| 1808 | - 'from' => '', |
|
| 1809 | - 'subject' => 'Report of hostile language in user profile at [:global:site-name]', |
|
| 1810 | - 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1808 | + 'from' => '', |
|
| 1809 | + 'subject' => 'Report of hostile language in user profile at [:global:site-name]', |
|
| 1810 | + 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1811 | 1811 | hostile language in a user profile: |
| 1812 | 1812 | |
| 1813 | 1813 | <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid] |
| 1814 | 1814 | |
| 1815 | 1815 | Total current reports of this user: [account:flag-abuse-user-meta-count]', |
| 1816 | - '#eval input' => array( |
|
| 1816 | + '#eval input' => array( |
|
| 1817 | 1817 | 'token_rules_input_evaluator' => array( |
| 1818 | - 'subject' => array( |
|
| 1818 | + 'subject' => array( |
|
| 1819 | 1819 | '0' => ':global', |
| 1820 | - ), |
|
| 1821 | - 'message' => array( |
|
| 1820 | + ), |
|
| 1821 | + 'message' => array( |
|
| 1822 | 1822 | '0' => 'flagging_user', |
| 1823 | 1823 | '1' => 'account', |
| 1824 | 1824 | '2' => ':global', |
| 1825 | - ), |
|
| 1826 | - 'from' => array( |
|
| 1825 | + ), |
|
| 1826 | + 'from' => array( |
|
| 1827 | 1827 | '0' => ':global', |
| 1828 | - ), |
|
| 1828 | + ), |
|
| 1829 | 1829 | ), |
| 1830 | 1830 | 'rules_input_evaluator_php' => array( |
| 1831 | - 'message' => array(), |
|
| 1831 | + 'message' => array(), |
|
| 1832 | + ), |
|
| 1832 | 1833 | ), |
| 1833 | - ), |
|
| 1834 | 1834 | ), |
| 1835 | 1835 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1836 | 1836 | '#info' => array( |
| 1837 | - 'label' => 'Notify moderators via email', |
|
| 1838 | - 'module' => 'BOINC core', |
|
| 1839 | - 'eval input' => array( |
|
| 1837 | + 'label' => 'Notify moderators via email', |
|
| 1838 | + 'module' => 'BOINC core', |
|
| 1839 | + 'eval input' => array( |
|
| 1840 | 1840 | '0' => 'subject', |
| 1841 | 1841 | '1' => 'message', |
| 1842 | 1842 | '2' => 'from', |
| 1843 | - ), |
|
| 1843 | + ), |
|
| 1844 | 1844 | ), |
| 1845 | 1845 | '#weight' => 0.0, |
| 1846 | - ), |
|
| 1846 | + ), |
|
| 1847 | 1847 | ), |
| 1848 | 1848 | '#version' => 6003, |
| 1849 | - ), |
|
| 1850 | - 'rules_offensive_user_reported_other' => array( |
|
| 1849 | + ), |
|
| 1850 | + 'rules_offensive_user_reported_other' => array( |
|
| 1851 | 1851 | '#type' => 'rule', |
| 1852 | 1852 | '#set' => 'event_flag_flagged_abuse_user_4', |
| 1853 | 1853 | '#label' => 'Offensive user reported - Other', |
| 1854 | 1854 | '#active' => 1, |
| 1855 | 1855 | '#weight' => '0', |
| 1856 | 1856 | '#categories' => array( |
| 1857 | - '0' => 'boinc_standard', |
|
| 1858 | - '1' => 'moderator notification', |
|
| 1857 | + '0' => 'boinc_standard', |
|
| 1858 | + '1' => 'moderator notification', |
|
| 1859 | 1859 | ), |
| 1860 | 1860 | '#status' => 'default', |
| 1861 | 1861 | '#conditions' => array(), |
| 1862 | 1862 | '#actions' => array( |
| 1863 | - '0' => array( |
|
| 1863 | + '0' => array( |
|
| 1864 | 1864 | '#type' => 'action', |
| 1865 | 1865 | '#settings' => array( |
| 1866 | - 'from' => '', |
|
| 1867 | - 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 1868 | - 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1866 | + 'from' => '', |
|
| 1867 | + 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 1868 | + 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1869 | 1869 | inappropriate behavior: |
| 1870 | 1870 | |
| 1871 | 1871 | <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid] |
| 1872 | 1872 | |
| 1873 | 1873 | Total current reports of this user: [account:flag-abuse-user-meta-count]', |
| 1874 | - '#eval input' => array( |
|
| 1874 | + '#eval input' => array( |
|
| 1875 | 1875 | 'token_rules_input_evaluator' => array( |
| 1876 | - 'subject' => array( |
|
| 1876 | + 'subject' => array( |
|
| 1877 | 1877 | '0' => ':global', |
| 1878 | - ), |
|
| 1879 | - 'message' => array( |
|
| 1878 | + ), |
|
| 1879 | + 'message' => array( |
|
| 1880 | 1880 | '0' => 'flagging_user', |
| 1881 | 1881 | '1' => 'account', |
| 1882 | 1882 | '2' => ':global', |
| 1883 | - ), |
|
| 1884 | - 'from' => array( |
|
| 1883 | + ), |
|
| 1884 | + 'from' => array( |
|
| 1885 | 1885 | '0' => ':global', |
| 1886 | - ), |
|
| 1886 | + ), |
|
| 1887 | 1887 | ), |
| 1888 | 1888 | 'rules_input_evaluator_php' => array( |
| 1889 | - 'message' => array(), |
|
| 1889 | + 'message' => array(), |
|
| 1890 | + ), |
|
| 1890 | 1891 | ), |
| 1891 | - ), |
|
| 1892 | 1892 | ), |
| 1893 | 1893 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1894 | 1894 | '#info' => array( |
| 1895 | - 'label' => 'Notify moderators via email', |
|
| 1896 | - 'module' => 'BOINC core', |
|
| 1897 | - 'eval input' => array( |
|
| 1895 | + 'label' => 'Notify moderators via email', |
|
| 1896 | + 'module' => 'BOINC core', |
|
| 1897 | + 'eval input' => array( |
|
| 1898 | 1898 | '0' => 'subject', |
| 1899 | 1899 | '1' => 'message', |
| 1900 | 1900 | '2' => 'from', |
| 1901 | - ), |
|
| 1901 | + ), |
|
| 1902 | 1902 | ), |
| 1903 | 1903 | '#weight' => 0.0, |
| 1904 | - ), |
|
| 1904 | + ), |
|
| 1905 | 1905 | ), |
| 1906 | 1906 | '#version' => 6003, |
| 1907 | - ), |
|
| 1908 | - 'rules_offensive_user_reported_spam' => array( |
|
| 1907 | + ), |
|
| 1908 | + 'rules_offensive_user_reported_spam' => array( |
|
| 1909 | 1909 | '#type' => 'rule', |
| 1910 | 1910 | '#set' => 'event_flag_flagged_abuse_user_1', |
| 1911 | 1911 | '#label' => 'Offensive user reported - SPAM', |
| 1912 | 1912 | '#active' => 1, |
| 1913 | 1913 | '#weight' => '0', |
| 1914 | 1914 | '#categories' => array( |
| 1915 | - '0' => 'boinc_standard', |
|
| 1916 | - '1' => 'moderator notification', |
|
| 1915 | + '0' => 'boinc_standard', |
|
| 1916 | + '1' => 'moderator notification', |
|
| 1917 | 1917 | ), |
| 1918 | 1918 | '#status' => 'default', |
| 1919 | 1919 | '#conditions' => array(), |
| 1920 | 1920 | '#actions' => array( |
| 1921 | - '0' => array( |
|
| 1921 | + '0' => array( |
|
| 1922 | 1922 | '#type' => 'action', |
| 1923 | 1923 | '#settings' => array( |
| 1924 | - 'from' => '', |
|
| 1925 | - 'subject' => 'Report of SPAM user at [:global:site-name]', |
|
| 1926 | - 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1924 | + 'from' => '', |
|
| 1925 | + 'subject' => 'Report of SPAM user at [:global:site-name]', |
|
| 1926 | + 'message' => '[flagging_user:display-name] has reported [account:display-name] for |
|
| 1927 | 1927 | a SPAM user profile: |
| 1928 | 1928 | |
| 1929 | 1929 | <?php print url(\\\'<front>\\\', array(\\\'absolute\\\' => TRUE, \\\'language\\\' => \\\'en\\\')); ?>/account/[account:uid] |
| 1930 | 1930 | |
| 1931 | 1931 | Total current reports of this user: [account:flag-abuse-user-meta-count]', |
| 1932 | - '#eval input' => array( |
|
| 1932 | + '#eval input' => array( |
|
| 1933 | 1933 | 'token_rules_input_evaluator' => array( |
| 1934 | - 'subject' => array( |
|
| 1934 | + 'subject' => array( |
|
| 1935 | 1935 | '0' => ':global', |
| 1936 | - ), |
|
| 1937 | - 'message' => array( |
|
| 1936 | + ), |
|
| 1937 | + 'message' => array( |
|
| 1938 | 1938 | '0' => 'flagging_user', |
| 1939 | 1939 | '1' => 'account', |
| 1940 | 1940 | '2' => ':global', |
| 1941 | - ), |
|
| 1942 | - 'from' => array( |
|
| 1941 | + ), |
|
| 1942 | + 'from' => array( |
|
| 1943 | 1943 | '0' => ':global', |
| 1944 | - ), |
|
| 1944 | + ), |
|
| 1945 | 1945 | ), |
| 1946 | 1946 | 'rules_input_evaluator_php' => array( |
| 1947 | - 'message' => array(), |
|
| 1947 | + 'message' => array(), |
|
| 1948 | + ), |
|
| 1948 | 1949 | ), |
| 1949 | - ), |
|
| 1950 | 1950 | ), |
| 1951 | 1951 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1952 | 1952 | '#info' => array( |
| 1953 | - 'label' => 'Notify moderators via email', |
|
| 1954 | - 'module' => 'BOINC core', |
|
| 1955 | - 'eval input' => array( |
|
| 1953 | + 'label' => 'Notify moderators via email', |
|
| 1954 | + 'module' => 'BOINC core', |
|
| 1955 | + 'eval input' => array( |
|
| 1956 | 1956 | '0' => 'subject', |
| 1957 | 1957 | '1' => 'message', |
| 1958 | 1958 | '2' => 'from', |
| 1959 | - ), |
|
| 1959 | + ), |
|
| 1960 | 1960 | ), |
| 1961 | 1961 | '#weight' => 0.0, |
| 1962 | - ), |
|
| 1962 | + ), |
|
| 1963 | 1963 | ), |
| 1964 | 1964 | '#version' => 6003, |
| 1965 | - ), |
|
| 1966 | - 'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array( |
|
| 1965 | + ), |
|
| 1966 | + 'rules_comment_converted_to_new_forum_topic_by_moderator_or_admin' => array( |
|
| 1967 | 1967 | '#type' => 'rule', |
| 1968 | 1968 | '#set' => 'event_boinccore_comment_convert', |
| 1969 | 1969 | '#label' => 'Comment is converted to new forum topic by moderator or admin', |
| 1970 | 1970 | '#active' => 1, |
| 1971 | 1971 | '#weight' => '0', |
| 1972 | 1972 | '#categories' => array( |
| 1973 | - '0' => 'boinc_standard', |
|
| 1974 | - '1' => 'moderator notification', |
|
| 1973 | + '0' => 'boinc_standard', |
|
| 1974 | + '1' => 'moderator notification', |
|
| 1975 | 1975 | ), |
| 1976 | 1976 | '#status' => 'default', |
| 1977 | 1977 | '#conditions' => array(), |
| 1978 | 1978 | '#actions' => array( |
| 1979 | - '0' => array( |
|
| 1979 | + '0' => array( |
|
| 1980 | 1980 | '#info' => array( |
| 1981 | - 'label' => 'Notify moderators via email', |
|
| 1982 | - 'module' => 'BOINC core', |
|
| 1983 | - 'eval input' => array( |
|
| 1981 | + 'label' => 'Notify moderators via email', |
|
| 1982 | + 'module' => 'BOINC core', |
|
| 1983 | + 'eval input' => array( |
|
| 1984 | 1984 | '0' => 'subject', |
| 1985 | 1985 | '1' => 'message', |
| 1986 | 1986 | '2' => 'from', |
| 1987 | - ), |
|
| 1987 | + ), |
|
| 1988 | 1988 | ), |
| 1989 | 1989 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 1990 | 1990 | '#settings' => array( |
| 1991 | - 'from' => '', |
|
| 1992 | - 'subject' => 'Comment at [:global:site-name] converted to new forum topic', |
|
| 1993 | - 'message' => "Comment has been converted to new forum topic by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 1994 | - '#eval input' => array( |
|
| 1991 | + 'from' => '', |
|
| 1992 | + 'subject' => 'Comment at [:global:site-name] converted to new forum topic', |
|
| 1993 | + 'message' => "Comment has been converted to new forum topic by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 1994 | + '#eval input' => array( |
|
| 1995 | 1995 | 'token_rules_input_evaluator' => array( |
| 1996 | - 'subject' => array( |
|
| 1996 | + 'subject' => array( |
|
| 1997 | 1997 | '0' => ':global', |
| 1998 | - ), |
|
| 1999 | - 'message' => array( |
|
| 1998 | + ), |
|
| 1999 | + 'message' => array( |
|
| 2000 | 2000 | '0' => 'user', |
| 2001 | 2001 | '1' => ':global', |
| 2002 | - ), |
|
| 2003 | - 'from' => array( |
|
| 2002 | + ), |
|
| 2003 | + 'from' => array( |
|
| 2004 | 2004 | '0' => ':global', |
| 2005 | - ), |
|
| 2005 | + ), |
|
| 2006 | 2006 | ), |
| 2007 | 2007 | 'rules_input_evaluator_php' => array( |
| 2008 | - 'message' => array( |
|
| 2008 | + 'message' => array( |
|
| 2009 | 2009 | '0' => 'node', |
| 2010 | - ), |
|
| 2010 | + ), |
|
| 2011 | + ), |
|
| 2011 | 2012 | ), |
| 2012 | - ), |
|
| 2013 | 2013 | ), |
| 2014 | 2014 | '#type' => 'action', |
| 2015 | 2015 | '#weight' => 0.0, |
| 2016 | - ), |
|
| 2016 | + ), |
|
| 2017 | 2017 | ), |
| 2018 | 2018 | '#version' => 6003, |
| 2019 | - ), |
|
| 2020 | - 'rules_comment_deleted_by_admin' => array( |
|
| 2019 | + ), |
|
| 2020 | + 'rules_comment_deleted_by_admin' => array( |
|
| 2021 | 2021 | '#type' => 'rule', |
| 2022 | 2022 | '#set' => 'event_comment_delete', |
| 2023 | 2023 | '#label' => 'Comment deleted by admin', |
| 2024 | 2024 | '#active' => 1, |
| 2025 | 2025 | '#weight' => '0', |
| 2026 | 2026 | '#categories' => array( |
| 2027 | - '0' => 'moderator notification', |
|
| 2028 | - '1' => 'boinc_standard', |
|
| 2027 | + '0' => 'moderator notification', |
|
| 2028 | + '1' => 'boinc_standard', |
|
| 2029 | 2029 | ), |
| 2030 | 2030 | '#status' => 'default', |
| 2031 | 2031 | '#conditions' => array(), |
| 2032 | 2032 | '#actions' => array( |
| 2033 | - '0' => array( |
|
| 2033 | + '0' => array( |
|
| 2034 | 2034 | '#type' => 'action', |
| 2035 | 2035 | '#settings' => array( |
| 2036 | - 'from' => '', |
|
| 2037 | - 'subject' => 'Comment deleted at [:global:site-name] by admin', |
|
| 2038 | - 'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2039 | - '#eval input' => array( |
|
| 2036 | + 'from' => '', |
|
| 2037 | + 'subject' => 'Comment deleted at [:global:site-name] by admin', |
|
| 2038 | + 'message' => "Comment to [node:type] topic '[node:title]' deleted by admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2039 | + '#eval input' => array( |
|
| 2040 | 2040 | 'token_rules_input_evaluator' => array( |
| 2041 | - 'subject' => array( |
|
| 2041 | + 'subject' => array( |
|
| 2042 | 2042 | '0' => ':global', |
| 2043 | - ), |
|
| 2044 | - 'message' => array( |
|
| 2043 | + ), |
|
| 2044 | + 'message' => array( |
|
| 2045 | 2045 | '0' => 'node', |
| 2046 | 2046 | '1' => 'user', |
| 2047 | 2047 | '2' => ':global', |
| 2048 | - ), |
|
| 2049 | - 'from' => array( |
|
| 2048 | + ), |
|
| 2049 | + 'from' => array( |
|
| 2050 | 2050 | '0' => ':global', |
| 2051 | - ), |
|
| 2051 | + ), |
|
| 2052 | 2052 | ), |
| 2053 | 2053 | 'rules_input_evaluator_php' => array( |
| 2054 | - 'message' => array( |
|
| 2054 | + 'message' => array( |
|
| 2055 | 2055 | '0' => 'node', |
| 2056 | - ), |
|
| 2056 | + ), |
|
| 2057 | + ), |
|
| 2057 | 2058 | ), |
| 2058 | - ), |
|
| 2059 | 2059 | ), |
| 2060 | 2060 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2061 | 2061 | '#info' => array( |
| 2062 | - 'label' => 'Notify moderators via email', |
|
| 2063 | - 'module' => 'BOINC core', |
|
| 2064 | - 'eval input' => array( |
|
| 2062 | + 'label' => 'Notify moderators via email', |
|
| 2063 | + 'module' => 'BOINC core', |
|
| 2064 | + 'eval input' => array( |
|
| 2065 | 2065 | '0' => 'subject', |
| 2066 | 2066 | '1' => 'message', |
| 2067 | 2067 | '2' => 'from', |
| 2068 | - ), |
|
| 2068 | + ), |
|
| 2069 | 2069 | ), |
| 2070 | 2070 | '#weight' => 0.0, |
| 2071 | - ), |
|
| 2071 | + ), |
|
| 2072 | 2072 | ), |
| 2073 | 2073 | '#version' => 6003, |
| 2074 | - ), |
|
| 2075 | - 'rules_comment_edited_by_moderator_or_admin' => array( |
|
| 2074 | + ), |
|
| 2075 | + 'rules_comment_edited_by_moderator_or_admin' => array( |
|
| 2076 | 2076 | '#type' => 'rule', |
| 2077 | 2077 | '#set' => 'event_comment_update', |
| 2078 | 2078 | '#label' => 'Comment is edited by moderator or admin', |
| 2079 | 2079 | '#active' => 1, |
| 2080 | 2080 | '#weight' => '0', |
| 2081 | 2081 | '#categories' => array( |
| 2082 | - '0' => 'boinc_standard', |
|
| 2083 | - '1' => 'moderator notification', |
|
| 2082 | + '0' => 'boinc_standard', |
|
| 2083 | + '1' => 'moderator notification', |
|
| 2084 | 2084 | ), |
| 2085 | 2085 | '#status' => 'default', |
| 2086 | 2086 | '#conditions' => array( |
| 2087 | - '0' => array( |
|
| 2087 | + '0' => array( |
|
| 2088 | 2088 | '#negate' => 1, |
| 2089 | 2089 | '#weight' => 0.0, |
| 2090 | 2090 | '#info' => array( |
| 2091 | - 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
|
| 2092 | - 'label callback' => FALSE, |
|
| 2093 | - 'arguments' => array( |
|
| 2091 | + 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
|
| 2092 | + 'label callback' => FALSE, |
|
| 2093 | + 'arguments' => array( |
|
| 2094 | 2094 | 'user1' => array( |
| 2095 | - 'type' => 'user', |
|
| 2096 | - 'label' => 'User account 1', |
|
| 2095 | + 'type' => 'user', |
|
| 2096 | + 'label' => 'User account 1', |
|
| 2097 | 2097 | ), |
| 2098 | 2098 | 'user2' => array( |
| 2099 | - 'type' => 'user', |
|
| 2100 | - 'label' => 'User account 2', |
|
| 2099 | + 'type' => 'user', |
|
| 2100 | + 'label' => 'User account 2', |
|
| 2101 | + ), |
|
| 2101 | 2102 | ), |
| 2102 | - ), |
|
| 2103 | - 'module' => 'User', |
|
| 2103 | + 'module' => 'User', |
|
| 2104 | 2104 | ), |
| 2105 | 2105 | '#name' => 'rules_condition_user_comparison', |
| 2106 | 2106 | '#settings' => array( |
| 2107 | - '#argument map' => array( |
|
| 2107 | + '#argument map' => array( |
|
| 2108 | 2108 | 'user1' => 'user', |
| 2109 | 2109 | 'user2' => 'comment_author', |
| 2110 | - ), |
|
| 2110 | + ), |
|
| 2111 | 2111 | ), |
| 2112 | 2112 | '#type' => 'condition', |
| 2113 | - ), |
|
| 2113 | + ), |
|
| 2114 | 2114 | ), |
| 2115 | 2115 | '#actions' => array( |
| 2116 | - '0' => array( |
|
| 2116 | + '0' => array( |
|
| 2117 | 2117 | '#type' => 'action', |
| 2118 | 2118 | '#settings' => array( |
| 2119 | - 'from' => '', |
|
| 2120 | - 'subject' => 'Comment edited at [:global:site-name] by moderator or admin', |
|
| 2121 | - 'message' => "Comment has been edited by moderator/admin [user:display-name]\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2122 | - '#eval input' => array( |
|
| 2119 | + 'from' => '', |
|
| 2120 | + 'subject' => 'Comment edited at [:global:site-name] by moderator or admin', |
|
| 2121 | + 'message' => "Comment has been edited by moderator/admin [user:display-name]\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2122 | + '#eval input' => array( |
|
| 2123 | 2123 | 'token_rules_input_evaluator' => array( |
| 2124 | - 'subject' => array( |
|
| 2124 | + 'subject' => array( |
|
| 2125 | 2125 | '0' => ':global', |
| 2126 | - ), |
|
| 2127 | - 'message' => array( |
|
| 2126 | + ), |
|
| 2127 | + 'message' => array( |
|
| 2128 | 2128 | '0' => 'comment', |
| 2129 | 2129 | '1' => 'user', |
| 2130 | 2130 | '2' => ':global', |
| 2131 | - ), |
|
| 2132 | - 'from' => array( |
|
| 2131 | + ), |
|
| 2132 | + 'from' => array( |
|
| 2133 | 2133 | '0' => ':global', |
| 2134 | - ), |
|
| 2134 | + ), |
|
| 2135 | 2135 | ), |
| 2136 | 2136 | 'rules_input_evaluator_php' => array( |
| 2137 | - 'message' => array(), |
|
| 2137 | + 'message' => array(), |
|
| 2138 | + ), |
|
| 2138 | 2139 | ), |
| 2139 | - ), |
|
| 2140 | 2140 | ), |
| 2141 | 2141 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2142 | 2142 | '#info' => array( |
| 2143 | - 'label' => 'Notify moderators via email', |
|
| 2144 | - 'module' => 'BOINC core', |
|
| 2145 | - 'eval input' => array( |
|
| 2143 | + 'label' => 'Notify moderators via email', |
|
| 2144 | + 'module' => 'BOINC core', |
|
| 2145 | + 'eval input' => array( |
|
| 2146 | 2146 | '0' => 'subject', |
| 2147 | 2147 | '1' => 'message', |
| 2148 | 2148 | '2' => 'from', |
| 2149 | - ), |
|
| 2149 | + ), |
|
| 2150 | 2150 | ), |
| 2151 | 2151 | '#weight' => 0.0, |
| 2152 | - ), |
|
| 2152 | + ), |
|
| 2153 | 2153 | ), |
| 2154 | 2154 | '#version' => 6003, |
| 2155 | - ), |
|
| 2156 | - 'rules_comment_is_published_unhidden_by_moderator_or_admin' => array( |
|
| 2155 | + ), |
|
| 2156 | + 'rules_comment_is_published_unhidden_by_moderator_or_admin' => array( |
|
| 2157 | 2157 | '#type' => 'rule', |
| 2158 | 2158 | '#set' => 'event_boinccore_comment_unhidden', |
| 2159 | 2159 | '#label' => 'Comment is unhidden by moderator or admin', |
| 2160 | 2160 | '#active' => 1, |
| 2161 | 2161 | '#weight' => '0', |
| 2162 | 2162 | '#categories' => array( |
| 2163 | - '0' => 'boinc_standard', |
|
| 2164 | - '1' => 'moderator notification', |
|
| 2163 | + '0' => 'boinc_standard', |
|
| 2164 | + '1' => 'moderator notification', |
|
| 2165 | 2165 | ), |
| 2166 | 2166 | '#status' => 'default', |
| 2167 | 2167 | '#conditions' => array( |
| 2168 | - '0' => array( |
|
| 2168 | + '0' => array( |
|
| 2169 | 2169 | '#type' => 'condition', |
| 2170 | 2170 | '#settings' => array( |
| 2171 | - '#argument map' => array( |
|
| 2171 | + '#argument map' => array( |
|
| 2172 | 2172 | 'user1' => 'user', |
| 2173 | 2173 | 'user2' => 'comment_author', |
| 2174 | - ), |
|
| 2174 | + ), |
|
| 2175 | 2175 | ), |
| 2176 | 2176 | '#name' => 'rules_condition_user_comparison', |
| 2177 | 2177 | '#info' => array( |
| 2178 | - 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
|
| 2179 | - 'label callback' => FALSE, |
|
| 2180 | - 'arguments' => array( |
|
| 2178 | + 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
|
| 2179 | + 'label callback' => FALSE, |
|
| 2180 | + 'arguments' => array( |
|
| 2181 | 2181 | 'user1' => array( |
| 2182 | - 'type' => 'user', |
|
| 2183 | - 'label' => 'User account 1', |
|
| 2182 | + 'type' => 'user', |
|
| 2183 | + 'label' => 'User account 1', |
|
| 2184 | 2184 | ), |
| 2185 | 2185 | 'user2' => array( |
| 2186 | - 'type' => 'user', |
|
| 2187 | - 'label' => 'User account 2', |
|
| 2186 | + 'type' => 'user', |
|
| 2187 | + 'label' => 'User account 2', |
|
| 2188 | 2188 | ), |
| 2189 | - ), |
|
| 2190 | - 'module' => 'User', |
|
| 2189 | + ), |
|
| 2190 | + 'module' => 'User', |
|
| 2191 | 2191 | ), |
| 2192 | 2192 | '#negate' => 1, |
| 2193 | 2193 | '#weight' => 0.0, |
| 2194 | - ), |
|
| 2194 | + ), |
|
| 2195 | 2195 | ), |
| 2196 | 2196 | '#actions' => array( |
| 2197 | - '0' => array( |
|
| 2197 | + '0' => array( |
|
| 2198 | 2198 | '#info' => array( |
| 2199 | - 'label' => 'Notify moderators via email', |
|
| 2200 | - 'module' => 'BOINC core', |
|
| 2201 | - 'eval input' => array( |
|
| 2199 | + 'label' => 'Notify moderators via email', |
|
| 2200 | + 'module' => 'BOINC core', |
|
| 2201 | + 'eval input' => array( |
|
| 2202 | 2202 | '0' => 'subject', |
| 2203 | 2203 | '1' => 'message', |
| 2204 | 2204 | '2' => 'from', |
| 2205 | - ), |
|
| 2205 | + ), |
|
| 2206 | 2206 | ), |
| 2207 | 2207 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2208 | 2208 | '#settings' => array( |
| 2209 | - 'from' => '', |
|
| 2210 | - 'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin', |
|
| 2211 | - 'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2212 | - '#eval input' => array( |
|
| 2209 | + 'from' => '', |
|
| 2210 | + 'subject' => 'Comment at [:global:site-name] unhidden by moderator or admin', |
|
| 2211 | + 'message' => "Comment has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2212 | + '#eval input' => array( |
|
| 2213 | 2213 | 'token_rules_input_evaluator' => array( |
| 2214 | - 'subject' => array( |
|
| 2214 | + 'subject' => array( |
|
| 2215 | 2215 | '0' => ':global', |
| 2216 | - ), |
|
| 2217 | - 'message' => array( |
|
| 2216 | + ), |
|
| 2217 | + 'message' => array( |
|
| 2218 | 2218 | '0' => 'comment', |
| 2219 | 2219 | '1' => 'user', |
| 2220 | 2220 | '2' => ':global', |
| 2221 | - ), |
|
| 2222 | - 'from' => array( |
|
| 2221 | + ), |
|
| 2222 | + 'from' => array( |
|
| 2223 | 2223 | '0' => ':global', |
| 2224 | - ), |
|
| 2224 | + ), |
|
| 2225 | 2225 | ), |
| 2226 | 2226 | 'rules_input_evaluator_php' => array( |
| 2227 | - 'message' => array(), |
|
| 2227 | + 'message' => array(), |
|
| 2228 | + ), |
|
| 2228 | 2229 | ), |
| 2229 | - ), |
|
| 2230 | 2230 | ), |
| 2231 | 2231 | '#type' => 'action', |
| 2232 | 2232 | '#weight' => 0.0, |
| 2233 | - ), |
|
| 2233 | + ), |
|
| 2234 | 2234 | ), |
| 2235 | 2235 | '#version' => 6003, |
| 2236 | - ), |
|
| 2237 | - 'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array( |
|
| 2236 | + ), |
|
| 2237 | + 'rules_comment_is_unpublished_hidden_by_moderator_or_admin' => array( |
|
| 2238 | 2238 | '#type' => 'rule', |
| 2239 | 2239 | '#set' => 'event_comment_unpublish', |
| 2240 | 2240 | '#label' => 'Comment is hidden by moderator or admin', |
| 2241 | 2241 | '#active' => 1, |
| 2242 | 2242 | '#weight' => '0', |
| 2243 | 2243 | '#categories' => array( |
| 2244 | - '0' => 'boinc_standard', |
|
| 2245 | - '1' => 'moderator notification', |
|
| 2244 | + '0' => 'boinc_standard', |
|
| 2245 | + '1' => 'moderator notification', |
|
| 2246 | 2246 | ), |
| 2247 | 2247 | '#status' => 'default', |
| 2248 | 2248 | '#conditions' => array( |
| 2249 | - '0' => array( |
|
| 2249 | + '0' => array( |
|
| 2250 | 2250 | '#weight' => 0.0, |
| 2251 | 2251 | '#negate' => 1, |
| 2252 | 2252 | '#info' => array( |
| 2253 | - 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
|
| 2254 | - 'label callback' => FALSE, |
|
| 2255 | - 'arguments' => array( |
|
| 2253 | + 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
|
| 2254 | + 'label callback' => FALSE, |
|
| 2255 | + 'arguments' => array( |
|
| 2256 | 2256 | 'user1' => array( |
| 2257 | - 'type' => 'user', |
|
| 2258 | - 'label' => 'User account 1', |
|
| 2257 | + 'type' => 'user', |
|
| 2258 | + 'label' => 'User account 1', |
|
| 2259 | 2259 | ), |
| 2260 | 2260 | 'user2' => array( |
| 2261 | - 'type' => 'user', |
|
| 2262 | - 'label' => 'User account 2', |
|
| 2261 | + 'type' => 'user', |
|
| 2262 | + 'label' => 'User account 2', |
|
| 2263 | + ), |
|
| 2263 | 2264 | ), |
| 2264 | - ), |
|
| 2265 | - 'module' => 'User', |
|
| 2265 | + 'module' => 'User', |
|
| 2266 | 2266 | ), |
| 2267 | 2267 | '#name' => 'rules_condition_user_comparison', |
| 2268 | 2268 | '#type' => 'condition', |
| 2269 | 2269 | '#settings' => array( |
| 2270 | - '#argument map' => array( |
|
| 2270 | + '#argument map' => array( |
|
| 2271 | 2271 | 'user1' => 'user', |
| 2272 | 2272 | 'user2' => 'comment_author', |
| 2273 | - ), |
|
| 2273 | + ), |
|
| 2274 | + ), |
|
| 2274 | 2275 | ), |
| 2275 | - ), |
|
| 2276 | 2276 | ), |
| 2277 | 2277 | '#actions' => array( |
| 2278 | - '0' => array( |
|
| 2278 | + '0' => array( |
|
| 2279 | 2279 | '#type' => 'action', |
| 2280 | 2280 | '#settings' => array( |
| 2281 | - 'from' => '', |
|
| 2282 | - 'subject' => 'Comment at [:global:site-name] hidden by moderator or admin', |
|
| 2283 | - 'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2284 | - '#eval input' => array( |
|
| 2281 | + 'from' => '', |
|
| 2282 | + 'subject' => 'Comment at [:global:site-name] hidden by moderator or admin', |
|
| 2283 | + 'message' => "Comment has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]", |
|
| 2284 | + '#eval input' => array( |
|
| 2285 | 2285 | 'token_rules_input_evaluator' => array( |
| 2286 | - 'subject' => array( |
|
| 2286 | + 'subject' => array( |
|
| 2287 | 2287 | '0' => ':global', |
| 2288 | - ), |
|
| 2289 | - 'message' => array( |
|
| 2288 | + ), |
|
| 2289 | + 'message' => array( |
|
| 2290 | 2290 | '0' => 'comment', |
| 2291 | 2291 | '1' => 'user', |
| 2292 | 2292 | '2' => ':global', |
| 2293 | - ), |
|
| 2294 | - 'from' => array( |
|
| 2293 | + ), |
|
| 2294 | + 'from' => array( |
|
| 2295 | 2295 | '0' => ':global', |
| 2296 | - ), |
|
| 2296 | + ), |
|
| 2297 | 2297 | ), |
| 2298 | 2298 | 'rules_input_evaluator_php' => array( |
| 2299 | - 'message' => array(), |
|
| 2299 | + 'message' => array(), |
|
| 2300 | + ), |
|
| 2300 | 2301 | ), |
| 2301 | - ), |
|
| 2302 | 2302 | ), |
| 2303 | 2303 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2304 | 2304 | '#info' => array( |
| 2305 | - 'label' => 'Notify moderators via email', |
|
| 2306 | - 'module' => 'BOINC core', |
|
| 2307 | - 'eval input' => array( |
|
| 2305 | + 'label' => 'Notify moderators via email', |
|
| 2306 | + 'module' => 'BOINC core', |
|
| 2307 | + 'eval input' => array( |
|
| 2308 | 2308 | '0' => 'subject', |
| 2309 | 2309 | '1' => 'message', |
| 2310 | 2310 | '2' => 'from', |
| 2311 | - ), |
|
| 2311 | + ), |
|
| 2312 | 2312 | ), |
| 2313 | 2313 | '#weight' => 0.0, |
| 2314 | - ), |
|
| 2314 | + ), |
|
| 2315 | 2315 | ), |
| 2316 | 2316 | '#version' => 6003, |
| 2317 | - ), |
|
| 2318 | - 'rules_forum_topic_is_edited_by_moderator_or_admin' => array( |
|
| 2317 | + ), |
|
| 2318 | + 'rules_forum_topic_is_edited_by_moderator_or_admin' => array( |
|
| 2319 | 2319 | '#type' => 'rule', |
| 2320 | 2320 | '#set' => 'event_node_update', |
| 2321 | 2321 | '#label' => 'Forum topic is edited by moderator or admin', |
| 2322 | 2322 | '#active' => 1, |
| 2323 | 2323 | '#weight' => '0', |
| 2324 | 2324 | '#categories' => array( |
| 2325 | - '0' => 'boinc_standard', |
|
| 2326 | - '1' => 'moderator notification', |
|
| 2325 | + '0' => 'boinc_standard', |
|
| 2326 | + '1' => 'moderator notification', |
|
| 2327 | 2327 | ), |
| 2328 | 2328 | '#status' => 'default', |
| 2329 | 2329 | '#conditions' => array( |
| 2330 | - '0' => array( |
|
| 2330 | + '0' => array( |
|
| 2331 | 2331 | '#weight' => 0.0, |
| 2332 | 2332 | '#type' => 'condition', |
| 2333 | 2333 | '#settings' => array( |
| 2334 | - 'roles' => array( |
|
| 2334 | + 'roles' => array( |
|
| 2335 | 2335 | '0' => 3519698132, |
| 2336 | 2336 | '1' => 1271379760, |
| 2337 | - ), |
|
| 2338 | - 'operation' => 'OR', |
|
| 2339 | - '#argument map' => array( |
|
| 2337 | + ), |
|
| 2338 | + 'operation' => 'OR', |
|
| 2339 | + '#argument map' => array( |
|
| 2340 | 2340 | 'user' => 'user', |
| 2341 | - ), |
|
| 2341 | + ), |
|
| 2342 | 2342 | ), |
| 2343 | 2343 | '#name' => 'rules_condition_user_hasrole', |
| 2344 | 2344 | '#info' => array( |
| 2345 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 2346 | - 'label callback' => FALSE, |
|
| 2347 | - 'arguments' => array( |
|
| 2345 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 2346 | + 'label callback' => FALSE, |
|
| 2347 | + 'arguments' => array( |
|
| 2348 | 2348 | 'user' => array( |
| 2349 | - 'type' => 'user', |
|
| 2350 | - 'label' => 'User', |
|
| 2349 | + 'type' => 'user', |
|
| 2350 | + 'label' => 'User', |
|
| 2351 | 2351 | ), |
| 2352 | - ), |
|
| 2353 | - 'module' => 'User', |
|
| 2352 | + ), |
|
| 2353 | + 'module' => 'User', |
|
| 2354 | + ), |
|
| 2354 | 2355 | ), |
| 2355 | - ), |
|
| 2356 | - '1' => array( |
|
| 2356 | + '1' => array( |
|
| 2357 | 2357 | '#weight' => 0.0, |
| 2358 | 2358 | '0' => array( |
| 2359 | - '#weight' => 0.0, |
|
| 2360 | - '#info' => array( |
|
| 2359 | + '#weight' => 0.0, |
|
| 2360 | + '#info' => array( |
|
| 2361 | 2361 | 'label' => 'Updated content is Forum topic', |
| 2362 | 2362 | 'arguments' => array( |
| 2363 | - 'node' => array( |
|
| 2363 | + 'node' => array( |
|
| 2364 | 2364 | 'type' => 'node', |
| 2365 | 2365 | 'label' => 'Content', |
| 2366 | - ), |
|
| 2366 | + ), |
|
| 2367 | 2367 | ), |
| 2368 | 2368 | 'module' => 'Node', |
| 2369 | - ), |
|
| 2370 | - '#name' => 'rules_condition_content_is_type', |
|
| 2371 | - '#settings' => array( |
|
| 2369 | + ), |
|
| 2370 | + '#name' => 'rules_condition_content_is_type', |
|
| 2371 | + '#settings' => array( |
|
| 2372 | 2372 | 'type' => array( |
| 2373 | - 'forum' => 'forum', |
|
| 2373 | + 'forum' => 'forum', |
|
| 2374 | 2374 | ), |
| 2375 | 2375 | '#argument map' => array( |
| 2376 | - 'node' => 'node', |
|
| 2376 | + 'node' => 'node', |
|
| 2377 | + ), |
|
| 2377 | 2378 | ), |
| 2378 | - ), |
|
| 2379 | - '#type' => 'condition', |
|
| 2379 | + '#type' => 'condition', |
|
| 2380 | 2380 | ), |
| 2381 | 2381 | '#type' => 'OR', |
| 2382 | 2382 | '1' => array( |
| 2383 | - '#type' => 'condition', |
|
| 2384 | - '#settings' => array( |
|
| 2383 | + '#type' => 'condition', |
|
| 2384 | + '#settings' => array( |
|
| 2385 | 2385 | 'type' => array( |
| 2386 | - 'team_forum' => 'team_forum', |
|
| 2386 | + 'team_forum' => 'team_forum', |
|
| 2387 | 2387 | ), |
| 2388 | 2388 | '#argument map' => array( |
| 2389 | - 'node' => 'node', |
|
| 2389 | + 'node' => 'node', |
|
| 2390 | + ), |
|
| 2390 | 2391 | ), |
| 2391 | - ), |
|
| 2392 | - '#name' => 'rules_condition_content_is_type', |
|
| 2393 | - '#info' => array( |
|
| 2392 | + '#name' => 'rules_condition_content_is_type', |
|
| 2393 | + '#info' => array( |
|
| 2394 | 2394 | 'label' => 'Updated content is Team forum topic', |
| 2395 | 2395 | 'arguments' => array( |
| 2396 | - 'node' => array( |
|
| 2396 | + 'node' => array( |
|
| 2397 | 2397 | 'type' => 'node', |
| 2398 | 2398 | 'label' => 'Content', |
| 2399 | - ), |
|
| 2399 | + ), |
|
| 2400 | 2400 | ), |
| 2401 | 2401 | 'module' => 'Node', |
| 2402 | - ), |
|
| 2403 | - '#weight' => 0.0, |
|
| 2402 | + ), |
|
| 2403 | + '#weight' => 0.0, |
|
| 2404 | + ), |
|
| 2404 | 2405 | ), |
| 2405 | - ), |
|
| 2406 | - '2' => array( |
|
| 2406 | + '2' => array( |
|
| 2407 | 2407 | '#weight' => 0.0, |
| 2408 | 2408 | '#info' => array( |
| 2409 | - 'label' => 'PHP code: content changed', |
|
| 2410 | - 'label callback' => FALSE, |
|
| 2411 | - 'module' => 'PHP', |
|
| 2412 | - 'eval input' => array( |
|
| 2409 | + 'label' => 'PHP code: content changed', |
|
| 2410 | + 'label callback' => FALSE, |
|
| 2411 | + 'module' => 'PHP', |
|
| 2412 | + 'eval input' => array( |
|
| 2413 | 2413 | '0' => 'code', |
| 2414 | - ), |
|
| 2414 | + ), |
|
| 2415 | 2415 | ), |
| 2416 | 2416 | '#name' => 'rules_condition_custom_php', |
| 2417 | 2417 | '#settings' => array( |
| 2418 | - 'code' => 'return ($node->body != $node_unchanged->body);', |
|
| 2419 | - 'vars' => array( |
|
| 2418 | + 'code' => 'return ($node->body != $node_unchanged->body);', |
|
| 2419 | + 'vars' => array( |
|
| 2420 | 2420 | '0' => 'node', |
| 2421 | 2421 | '1' => 'node_unchanged', |
| 2422 | - ), |
|
| 2423 | - '#eval input' => array( |
|
| 2422 | + ), |
|
| 2423 | + '#eval input' => array( |
|
| 2424 | 2424 | 'token_rules_input_evaluator' => array( |
| 2425 | - 'code' => array( |
|
| 2425 | + 'code' => array( |
|
| 2426 | 2426 | '0' => ':global', |
| 2427 | - ), |
|
| 2427 | + ), |
|
| 2428 | + ), |
|
| 2428 | 2429 | ), |
| 2429 | - ), |
|
| 2430 | 2430 | ), |
| 2431 | 2431 | '#type' => 'condition', |
| 2432 | - ), |
|
| 2432 | + ), |
|
| 2433 | 2433 | ), |
| 2434 | 2434 | '#actions' => array( |
| 2435 | - '0' => array( |
|
| 2435 | + '0' => array( |
|
| 2436 | 2436 | '#type' => 'action', |
| 2437 | 2437 | '#settings' => array( |
| 2438 | - 'from' => '', |
|
| 2439 | - 'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin', |
|
| 2440 | - 'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2441 | - '#eval input' => array( |
|
| 2438 | + 'from' => '', |
|
| 2439 | + 'subject' => 'Forum topic at [:global:site-name] edited by moderator/admin', |
|
| 2440 | + 'message' => "[node:type] topic '[node:title]' has been edited by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2441 | + '#eval input' => array( |
|
| 2442 | 2442 | 'token_rules_input_evaluator' => array( |
| 2443 | - 'subject' => array( |
|
| 2443 | + 'subject' => array( |
|
| 2444 | 2444 | '0' => ':global', |
| 2445 | - ), |
|
| 2446 | - 'message' => array( |
|
| 2445 | + ), |
|
| 2446 | + 'message' => array( |
|
| 2447 | 2447 | '0' => 'node', |
| 2448 | 2448 | '1' => 'user', |
| 2449 | 2449 | '2' => ':global', |
| 2450 | - ), |
|
| 2451 | - 'from' => array( |
|
| 2450 | + ), |
|
| 2451 | + 'from' => array( |
|
| 2452 | 2452 | '0' => ':global', |
| 2453 | - ), |
|
| 2453 | + ), |
|
| 2454 | 2454 | ), |
| 2455 | 2455 | 'rules_input_evaluator_php' => array( |
| 2456 | - 'message' => array( |
|
| 2456 | + 'message' => array( |
|
| 2457 | 2457 | '0' => 'node', |
| 2458 | - ), |
|
| 2458 | + ), |
|
| 2459 | + ), |
|
| 2459 | 2460 | ), |
| 2460 | - ), |
|
| 2461 | 2461 | ), |
| 2462 | 2462 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2463 | 2463 | '#info' => array( |
| 2464 | - 'label' => 'Notify moderators via email', |
|
| 2465 | - 'module' => 'BOINC core', |
|
| 2466 | - 'eval input' => array( |
|
| 2464 | + 'label' => 'Notify moderators via email', |
|
| 2465 | + 'module' => 'BOINC core', |
|
| 2466 | + 'eval input' => array( |
|
| 2467 | 2467 | '0' => 'subject', |
| 2468 | 2468 | '1' => 'message', |
| 2469 | 2469 | '2' => 'from', |
| 2470 | - ), |
|
| 2470 | + ), |
|
| 2471 | 2471 | ), |
| 2472 | 2472 | '#weight' => 0.0, |
| 2473 | - ), |
|
| 2473 | + ), |
|
| 2474 | 2474 | ), |
| 2475 | 2475 | '#version' => 6003, |
| 2476 | - ), |
|
| 2477 | - 'rules_forum_topic_is_hidden_by_moderator_admin' => array( |
|
| 2476 | + ), |
|
| 2477 | + 'rules_forum_topic_is_hidden_by_moderator_admin' => array( |
|
| 2478 | 2478 | '#type' => 'rule', |
| 2479 | 2479 | '#set' => 'event_node_update', |
| 2480 | 2480 | '#label' => 'Forum topic is hidden by moderator/admin', |
| 2481 | 2481 | '#active' => 1, |
| 2482 | 2482 | '#weight' => '0', |
| 2483 | 2483 | '#categories' => array( |
| 2484 | - '0' => 'boinc_standard', |
|
| 2485 | - '1' => 'moderator notification', |
|
| 2484 | + '0' => 'boinc_standard', |
|
| 2485 | + '1' => 'moderator notification', |
|
| 2486 | 2486 | ), |
| 2487 | 2487 | '#status' => 'default', |
| 2488 | 2488 | '#conditions' => array( |
| 2489 | - '0' => array( |
|
| 2489 | + '0' => array( |
|
| 2490 | 2490 | '#type' => 'condition', |
| 2491 | 2491 | '#settings' => array( |
| 2492 | - 'roles' => array( |
|
| 2492 | + 'roles' => array( |
|
| 2493 | 2493 | '0' => 3519698132, |
| 2494 | 2494 | '1' => 1271379760, |
| 2495 | - ), |
|
| 2496 | - 'operation' => 'OR', |
|
| 2497 | - '#argument map' => array( |
|
| 2495 | + ), |
|
| 2496 | + 'operation' => 'OR', |
|
| 2497 | + '#argument map' => array( |
|
| 2498 | 2498 | 'user' => 'user', |
| 2499 | - ), |
|
| 2499 | + ), |
|
| 2500 | 2500 | ), |
| 2501 | 2501 | '#name' => 'rules_condition_user_hasrole', |
| 2502 | 2502 | '#info' => array( |
| 2503 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 2504 | - 'label callback' => FALSE, |
|
| 2505 | - 'arguments' => array( |
|
| 2503 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 2504 | + 'label callback' => FALSE, |
|
| 2505 | + 'arguments' => array( |
|
| 2506 | 2506 | 'user' => array( |
| 2507 | - 'type' => 'user', |
|
| 2508 | - 'label' => 'User', |
|
| 2507 | + 'type' => 'user', |
|
| 2508 | + 'label' => 'User', |
|
| 2509 | + ), |
|
| 2509 | 2510 | ), |
| 2510 | - ), |
|
| 2511 | - 'module' => 'User', |
|
| 2511 | + 'module' => 'User', |
|
| 2512 | 2512 | ), |
| 2513 | 2513 | '#weight' => 0.0, |
| 2514 | - ), |
|
| 2515 | - '1' => array( |
|
| 2514 | + ), |
|
| 2515 | + '1' => array( |
|
| 2516 | 2516 | '#weight' => 0.0, |
| 2517 | 2517 | '0' => array( |
| 2518 | - '#weight' => 0.0, |
|
| 2519 | - '#type' => 'condition', |
|
| 2520 | - '#settings' => array( |
|
| 2518 | + '#weight' => 0.0, |
|
| 2519 | + '#type' => 'condition', |
|
| 2520 | + '#settings' => array( |
|
| 2521 | 2521 | 'type' => array( |
| 2522 | - 'forum' => 'forum', |
|
| 2522 | + 'forum' => 'forum', |
|
| 2523 | 2523 | ), |
| 2524 | 2524 | '#argument map' => array( |
| 2525 | - 'node' => 'node', |
|
| 2525 | + 'node' => 'node', |
|
| 2526 | + ), |
|
| 2526 | 2527 | ), |
| 2527 | - ), |
|
| 2528 | - '#name' => 'rules_condition_content_is_type', |
|
| 2529 | - '#info' => array( |
|
| 2528 | + '#name' => 'rules_condition_content_is_type', |
|
| 2529 | + '#info' => array( |
|
| 2530 | 2530 | 'label' => 'Updated content is Forum topic', |
| 2531 | 2531 | 'arguments' => array( |
| 2532 | - 'node' => array( |
|
| 2532 | + 'node' => array( |
|
| 2533 | 2533 | 'type' => 'node', |
| 2534 | 2534 | 'label' => 'Content', |
| 2535 | - ), |
|
| 2535 | + ), |
|
| 2536 | 2536 | ), |
| 2537 | 2537 | 'module' => 'Node', |
| 2538 | - ), |
|
| 2538 | + ), |
|
| 2539 | 2539 | ), |
| 2540 | 2540 | '#type' => 'OR', |
| 2541 | 2541 | '1' => array( |
| 2542 | - '#type' => 'condition', |
|
| 2543 | - '#settings' => array( |
|
| 2542 | + '#type' => 'condition', |
|
| 2543 | + '#settings' => array( |
|
| 2544 | 2544 | 'type' => array( |
| 2545 | - 'team_forum' => 'team_forum', |
|
| 2545 | + 'team_forum' => 'team_forum', |
|
| 2546 | 2546 | ), |
| 2547 | 2547 | '#argument map' => array( |
| 2548 | - 'node' => 'node', |
|
| 2548 | + 'node' => 'node', |
|
| 2549 | + ), |
|
| 2549 | 2550 | ), |
| 2550 | - ), |
|
| 2551 | - '#name' => 'rules_condition_content_is_type', |
|
| 2552 | - '#info' => array( |
|
| 2551 | + '#name' => 'rules_condition_content_is_type', |
|
| 2552 | + '#info' => array( |
|
| 2553 | 2553 | 'label' => 'Updated content is Team forum topic', |
| 2554 | 2554 | 'arguments' => array( |
| 2555 | - 'node' => array( |
|
| 2555 | + 'node' => array( |
|
| 2556 | 2556 | 'type' => 'node', |
| 2557 | 2557 | 'label' => 'Content', |
| 2558 | - ), |
|
| 2558 | + ), |
|
| 2559 | 2559 | ), |
| 2560 | 2560 | 'module' => 'Node', |
| 2561 | - ), |
|
| 2562 | - '#weight' => 0.0, |
|
| 2561 | + ), |
|
| 2562 | + '#weight' => 0.0, |
|
| 2563 | + ), |
|
| 2563 | 2564 | ), |
| 2564 | - ), |
|
| 2565 | - '3' => array( |
|
| 2565 | + '3' => array( |
|
| 2566 | 2566 | '#weight' => 0.0, |
| 2567 | 2567 | '#info' => array( |
| 2568 | - 'label' => 'PHP code: node content unchanged', |
|
| 2569 | - 'label callback' => FALSE, |
|
| 2570 | - 'module' => 'PHP', |
|
| 2571 | - 'eval input' => array( |
|
| 2568 | + 'label' => 'PHP code: node content unchanged', |
|
| 2569 | + 'label callback' => FALSE, |
|
| 2570 | + 'module' => 'PHP', |
|
| 2571 | + 'eval input' => array( |
|
| 2572 | 2572 | '0' => 'code', |
| 2573 | - ), |
|
| 2573 | + ), |
|
| 2574 | 2574 | ), |
| 2575 | 2575 | '#name' => 'rules_condition_custom_php', |
| 2576 | 2576 | '#settings' => array( |
| 2577 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 2578 | - 'vars' => array( |
|
| 2577 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 2578 | + 'vars' => array( |
|
| 2579 | 2579 | '0' => 'node', |
| 2580 | 2580 | '1' => 'node_unchanged', |
| 2581 | - ), |
|
| 2582 | - '#eval input' => array( |
|
| 2581 | + ), |
|
| 2582 | + '#eval input' => array( |
|
| 2583 | 2583 | 'token_rules_input_evaluator' => array( |
| 2584 | - 'code' => array( |
|
| 2584 | + 'code' => array( |
|
| 2585 | 2585 | '0' => ':global', |
| 2586 | - ), |
|
| 2586 | + ), |
|
| 2587 | + ), |
|
| 2587 | 2588 | ), |
| 2588 | - ), |
|
| 2589 | 2589 | ), |
| 2590 | 2590 | '#type' => 'condition', |
| 2591 | - ), |
|
| 2592 | - '4' => array( |
|
| 2591 | + ), |
|
| 2592 | + '4' => array( |
|
| 2593 | 2593 | '#weight' => 0.0, |
| 2594 | 2594 | '#info' => array( |
| 2595 | - 'label' => 'PHP code: node status changed to hidden', |
|
| 2596 | - 'label callback' => FALSE, |
|
| 2597 | - 'module' => 'PHP', |
|
| 2598 | - 'eval input' => array( |
|
| 2595 | + 'label' => 'PHP code: node status changed to hidden', |
|
| 2596 | + 'label callback' => FALSE, |
|
| 2597 | + 'module' => 'PHP', |
|
| 2598 | + 'eval input' => array( |
|
| 2599 | 2599 | '0' => 'code', |
| 2600 | - ), |
|
| 2600 | + ), |
|
| 2601 | 2601 | ), |
| 2602 | 2602 | '#name' => 'rules_condition_custom_php', |
| 2603 | 2603 | '#type' => 'condition', |
| 2604 | 2604 | '#settings' => array( |
| 2605 | - 'code' => 'return $node_unchanged->status == 1 && $node->status == 0;', |
|
| 2606 | - 'vars' => array( |
|
| 2605 | + 'code' => 'return $node_unchanged->status == 1 && $node->status == 0;', |
|
| 2606 | + 'vars' => array( |
|
| 2607 | 2607 | '0' => 'node', |
| 2608 | 2608 | '1' => 'node_unchanged', |
| 2609 | - ), |
|
| 2610 | - '#eval input' => array( |
|
| 2609 | + ), |
|
| 2610 | + '#eval input' => array( |
|
| 2611 | 2611 | 'token_rules_input_evaluator' => array( |
| 2612 | - 'code' => array( |
|
| 2612 | + 'code' => array( |
|
| 2613 | 2613 | '0' => ':global', |
| 2614 | - ), |
|
| 2614 | + ), |
|
| 2615 | + ), |
|
| 2615 | 2616 | ), |
| 2616 | - ), |
|
| 2617 | 2617 | ), |
| 2618 | - ), |
|
| 2618 | + ), |
|
| 2619 | 2619 | ), |
| 2620 | 2620 | '#actions' => array( |
| 2621 | - '0' => array( |
|
| 2621 | + '0' => array( |
|
| 2622 | 2622 | '#info' => array( |
| 2623 | - 'label' => 'Notify moderators via email', |
|
| 2624 | - 'module' => 'BOINC core', |
|
| 2625 | - 'eval input' => array( |
|
| 2623 | + 'label' => 'Notify moderators via email', |
|
| 2624 | + 'module' => 'BOINC core', |
|
| 2625 | + 'eval input' => array( |
|
| 2626 | 2626 | '0' => 'subject', |
| 2627 | 2627 | '1' => 'message', |
| 2628 | 2628 | '2' => 'from', |
| 2629 | - ), |
|
| 2629 | + ), |
|
| 2630 | 2630 | ), |
| 2631 | 2631 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2632 | 2632 | '#settings' => array( |
| 2633 | - 'from' => '', |
|
| 2634 | - 'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin', |
|
| 2635 | - 'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2636 | - '#eval input' => array( |
|
| 2633 | + 'from' => '', |
|
| 2634 | + 'subject' => 'Forum topic at [:global:site-name] hidden by moderator/admin', |
|
| 2635 | + 'message' => "[node:type] topic '[node:title]' has been hidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2636 | + '#eval input' => array( |
|
| 2637 | 2637 | 'token_rules_input_evaluator' => array( |
| 2638 | - 'subject' => array( |
|
| 2638 | + 'subject' => array( |
|
| 2639 | 2639 | '0' => ':global', |
| 2640 | - ), |
|
| 2641 | - 'message' => array( |
|
| 2640 | + ), |
|
| 2641 | + 'message' => array( |
|
| 2642 | 2642 | '0' => 'node', |
| 2643 | 2643 | '1' => 'user', |
| 2644 | 2644 | '2' => ':global', |
| 2645 | - ), |
|
| 2646 | - 'from' => array( |
|
| 2645 | + ), |
|
| 2646 | + 'from' => array( |
|
| 2647 | 2647 | '0' => ':global', |
| 2648 | - ), |
|
| 2648 | + ), |
|
| 2649 | 2649 | ), |
| 2650 | 2650 | 'rules_input_evaluator_php' => array( |
| 2651 | - 'message' => array( |
|
| 2651 | + 'message' => array( |
|
| 2652 | 2652 | '0' => 'node', |
| 2653 | - ), |
|
| 2653 | + ), |
|
| 2654 | + ), |
|
| 2654 | 2655 | ), |
| 2655 | - ), |
|
| 2656 | 2656 | ), |
| 2657 | 2657 | '#type' => 'action', |
| 2658 | 2658 | '#weight' => 0.0, |
| 2659 | - ), |
|
| 2659 | + ), |
|
| 2660 | 2660 | ), |
| 2661 | 2661 | '#version' => 6003, |
| 2662 | - ), |
|
| 2663 | - 'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array( |
|
| 2662 | + ), |
|
| 2663 | + 'rules_forum_topic_is_moved_to_a_different_forum_by_moderator_or_admin' => array( |
|
| 2664 | 2664 | '#type' => 'rule', |
| 2665 | 2665 | '#set' => 'event_node_update', |
| 2666 | 2666 | '#label' => 'Forum topic is moved to a different forum by moderator or admin', |
| 2667 | 2667 | '#active' => 1, |
| 2668 | 2668 | '#weight' => '0', |
| 2669 | 2669 | '#categories' => array( |
| 2670 | - '0' => 'boinc_standard', |
|
| 2671 | - '1' => 'moderator notification', |
|
| 2670 | + '0' => 'boinc_standard', |
|
| 2671 | + '1' => 'moderator notification', |
|
| 2672 | 2672 | ), |
| 2673 | 2673 | '#status' => 'default', |
| 2674 | 2674 | '#conditions' => array( |
| 2675 | - '0' => array( |
|
| 2675 | + '0' => array( |
|
| 2676 | 2676 | '#weight' => 0.0, |
| 2677 | 2677 | '#type' => 'condition', |
| 2678 | 2678 | '#settings' => array( |
| 2679 | - 'roles' => array( |
|
| 2679 | + 'roles' => array( |
|
| 2680 | 2680 | '0' => 3519698132, |
| 2681 | 2681 | '1' => 1271379760, |
| 2682 | - ), |
|
| 2683 | - 'operation' => 'OR', |
|
| 2684 | - '#argument map' => array( |
|
| 2682 | + ), |
|
| 2683 | + 'operation' => 'OR', |
|
| 2684 | + '#argument map' => array( |
|
| 2685 | 2685 | 'user' => 'user', |
| 2686 | - ), |
|
| 2686 | + ), |
|
| 2687 | 2687 | ), |
| 2688 | 2688 | '#name' => 'rules_condition_user_hasrole', |
| 2689 | 2689 | '#info' => array( |
| 2690 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 2691 | - 'label callback' => FALSE, |
|
| 2692 | - 'arguments' => array( |
|
| 2690 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 2691 | + 'label callback' => FALSE, |
|
| 2692 | + 'arguments' => array( |
|
| 2693 | 2693 | 'user' => array( |
| 2694 | - 'type' => 'user', |
|
| 2695 | - 'label' => 'User', |
|
| 2694 | + 'type' => 'user', |
|
| 2695 | + 'label' => 'User', |
|
| 2696 | 2696 | ), |
| 2697 | - ), |
|
| 2698 | - 'module' => 'User', |
|
| 2697 | + ), |
|
| 2698 | + 'module' => 'User', |
|
| 2699 | + ), |
|
| 2699 | 2700 | ), |
| 2700 | - ), |
|
| 2701 | - '1' => array( |
|
| 2701 | + '1' => array( |
|
| 2702 | 2702 | '#weight' => 0.0, |
| 2703 | 2703 | '0' => array( |
| 2704 | - '#weight' => 0.0, |
|
| 2705 | - '#info' => array( |
|
| 2704 | + '#weight' => 0.0, |
|
| 2705 | + '#info' => array( |
|
| 2706 | 2706 | 'label' => 'Updated content is Forum topic', |
| 2707 | 2707 | 'arguments' => array( |
| 2708 | - 'node' => array( |
|
| 2708 | + 'node' => array( |
|
| 2709 | 2709 | 'type' => 'node', |
| 2710 | 2710 | 'label' => 'Content', |
| 2711 | - ), |
|
| 2711 | + ), |
|
| 2712 | 2712 | ), |
| 2713 | 2713 | 'module' => 'Node', |
| 2714 | - ), |
|
| 2715 | - '#name' => 'rules_condition_content_is_type', |
|
| 2716 | - '#settings' => array( |
|
| 2714 | + ), |
|
| 2715 | + '#name' => 'rules_condition_content_is_type', |
|
| 2716 | + '#settings' => array( |
|
| 2717 | 2717 | 'type' => array( |
| 2718 | - 'forum' => 'forum', |
|
| 2718 | + 'forum' => 'forum', |
|
| 2719 | 2719 | ), |
| 2720 | 2720 | '#argument map' => array( |
| 2721 | - 'node' => 'node', |
|
| 2721 | + 'node' => 'node', |
|
| 2722 | + ), |
|
| 2722 | 2723 | ), |
| 2723 | - ), |
|
| 2724 | - '#type' => 'condition', |
|
| 2724 | + '#type' => 'condition', |
|
| 2725 | 2725 | ), |
| 2726 | 2726 | '#type' => 'OR', |
| 2727 | 2727 | '1' => array( |
| 2728 | - '#type' => 'condition', |
|
| 2729 | - '#settings' => array( |
|
| 2728 | + '#type' => 'condition', |
|
| 2729 | + '#settings' => array( |
|
| 2730 | 2730 | 'type' => array( |
| 2731 | - 'team_forum' => 'team_forum', |
|
| 2731 | + 'team_forum' => 'team_forum', |
|
| 2732 | 2732 | ), |
| 2733 | 2733 | '#argument map' => array( |
| 2734 | - 'node' => 'node', |
|
| 2734 | + 'node' => 'node', |
|
| 2735 | 2735 | ), |
| 2736 | - ), |
|
| 2737 | - '#name' => 'rules_condition_content_is_type', |
|
| 2738 | - '#info' => array( |
|
| 2736 | + ), |
|
| 2737 | + '#name' => 'rules_condition_content_is_type', |
|
| 2738 | + '#info' => array( |
|
| 2739 | 2739 | 'label' => 'Updated content is Team forum topic', |
| 2740 | 2740 | 'arguments' => array( |
| 2741 | - 'node' => array( |
|
| 2741 | + 'node' => array( |
|
| 2742 | 2742 | 'type' => 'node', |
| 2743 | 2743 | 'label' => 'Content', |
| 2744 | - ), |
|
| 2744 | + ), |
|
| 2745 | 2745 | ), |
| 2746 | 2746 | 'module' => 'Node', |
| 2747 | - ), |
|
| 2748 | - '#weight' => 0.0, |
|
| 2747 | + ), |
|
| 2748 | + '#weight' => 0.0, |
|
| 2749 | 2749 | ), |
| 2750 | - ), |
|
| 2751 | - '2' => array( |
|
| 2750 | + ), |
|
| 2751 | + '2' => array( |
|
| 2752 | 2752 | '#weight' => 0.0, |
| 2753 | 2753 | '#info' => array( |
| 2754 | - 'label' => 'PHP code: node moved to new forum parent', |
|
| 2755 | - 'label callback' => FALSE, |
|
| 2756 | - 'module' => 'PHP', |
|
| 2757 | - 'eval input' => array( |
|
| 2754 | + 'label' => 'PHP code: node moved to new forum parent', |
|
| 2755 | + 'label callback' => FALSE, |
|
| 2756 | + 'module' => 'PHP', |
|
| 2757 | + 'eval input' => array( |
|
| 2758 | 2758 | '0' => 'code', |
| 2759 | - ), |
|
| 2759 | + ), |
|
| 2760 | 2760 | ), |
| 2761 | 2761 | '#name' => 'rules_condition_custom_php', |
| 2762 | 2762 | '#settings' => array( |
| 2763 | - 'code' => 'return ($node->tid != $node_unchanged->tid);', |
|
| 2764 | - 'vars' => array( |
|
| 2763 | + 'code' => 'return ($node->tid != $node_unchanged->tid);', |
|
| 2764 | + 'vars' => array( |
|
| 2765 | 2765 | '0' => 'node', |
| 2766 | 2766 | '1' => 'node_unchanged', |
| 2767 | - ), |
|
| 2768 | - '#eval input' => array( |
|
| 2767 | + ), |
|
| 2768 | + '#eval input' => array( |
|
| 2769 | 2769 | 'token_rules_input_evaluator' => array( |
| 2770 | - 'code' => array( |
|
| 2770 | + 'code' => array( |
|
| 2771 | 2771 | '0' => ':global', |
| 2772 | - ), |
|
| 2772 | + ), |
|
| 2773 | + ), |
|
| 2773 | 2774 | ), |
| 2774 | - ), |
|
| 2775 | 2775 | ), |
| 2776 | 2776 | '#type' => 'condition', |
| 2777 | - ), |
|
| 2777 | + ), |
|
| 2778 | 2778 | ), |
| 2779 | 2779 | '#actions' => array( |
| 2780 | - '0' => array( |
|
| 2780 | + '0' => array( |
|
| 2781 | 2781 | '#type' => 'action', |
| 2782 | 2782 | '#settings' => array( |
| 2783 | - 'from' => '', |
|
| 2784 | - 'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin', |
|
| 2785 | - 'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2786 | - '#eval input' => array( |
|
| 2783 | + 'from' => '', |
|
| 2784 | + 'subject' => 'Forum topic at [:global:site-name] moved by moderator/admin', |
|
| 2785 | + 'message' => "[node:type] topic '[node:title]' has been moved by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2786 | + '#eval input' => array( |
|
| 2787 | 2787 | 'token_rules_input_evaluator' => array( |
| 2788 | - 'subject' => array( |
|
| 2788 | + 'subject' => array( |
|
| 2789 | 2789 | '0' => ':global', |
| 2790 | - ), |
|
| 2791 | - 'message' => array( |
|
| 2790 | + ), |
|
| 2791 | + 'message' => array( |
|
| 2792 | 2792 | '0' => 'node', |
| 2793 | 2793 | '1' => 'user', |
| 2794 | 2794 | '2' => ':global', |
| 2795 | - ), |
|
| 2796 | - 'from' => array( |
|
| 2795 | + ), |
|
| 2796 | + 'from' => array( |
|
| 2797 | 2797 | '0' => ':global', |
| 2798 | - ), |
|
| 2798 | + ), |
|
| 2799 | 2799 | ), |
| 2800 | 2800 | 'rules_input_evaluator_php' => array( |
| 2801 | - 'message' => array( |
|
| 2801 | + 'message' => array( |
|
| 2802 | 2802 | '0' => 'node', |
| 2803 | - ), |
|
| 2803 | + ), |
|
| 2804 | + ), |
|
| 2804 | 2805 | ), |
| 2805 | - ), |
|
| 2806 | 2806 | ), |
| 2807 | 2807 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2808 | 2808 | '#info' => array( |
| 2809 | - 'label' => 'Notify moderators via email', |
|
| 2810 | - 'module' => 'BOINC core', |
|
| 2811 | - 'eval input' => array( |
|
| 2809 | + 'label' => 'Notify moderators via email', |
|
| 2810 | + 'module' => 'BOINC core', |
|
| 2811 | + 'eval input' => array( |
|
| 2812 | 2812 | '0' => 'subject', |
| 2813 | 2813 | '1' => 'message', |
| 2814 | 2814 | '2' => 'from', |
| 2815 | - ), |
|
| 2815 | + ), |
|
| 2816 | 2816 | ), |
| 2817 | 2817 | '#weight' => 0.0, |
| 2818 | - ), |
|
| 2818 | + ), |
|
| 2819 | 2819 | ), |
| 2820 | 2820 | '#version' => 6003, |
| 2821 | - ), |
|
| 2822 | - 'rules_forum_topic_is_unhidden_by_moderator_admin' => array( |
|
| 2821 | + ), |
|
| 2822 | + 'rules_forum_topic_is_unhidden_by_moderator_admin' => array( |
|
| 2823 | 2823 | '#type' => 'rule', |
| 2824 | 2824 | '#set' => 'event_node_update', |
| 2825 | 2825 | '#label' => 'Forum topic is unhidden by moderator/admin', |
| 2826 | 2826 | '#active' => 1, |
| 2827 | 2827 | '#weight' => '0', |
| 2828 | 2828 | '#categories' => array( |
| 2829 | - '0' => 'boinc_standard', |
|
| 2830 | - '1' => 'moderator notification', |
|
| 2829 | + '0' => 'boinc_standard', |
|
| 2830 | + '1' => 'moderator notification', |
|
| 2831 | 2831 | ), |
| 2832 | 2832 | '#status' => 'default', |
| 2833 | 2833 | '#conditions' => array( |
| 2834 | - '0' => array( |
|
| 2834 | + '0' => array( |
|
| 2835 | 2835 | '#type' => 'condition', |
| 2836 | 2836 | '#settings' => array( |
| 2837 | - 'roles' => array( |
|
| 2837 | + 'roles' => array( |
|
| 2838 | 2838 | '0' => 3519698132, |
| 2839 | 2839 | '1' => 1271379760, |
| 2840 | - ), |
|
| 2841 | - 'operation' => 'OR', |
|
| 2842 | - '#argument map' => array( |
|
| 2840 | + ), |
|
| 2841 | + 'operation' => 'OR', |
|
| 2842 | + '#argument map' => array( |
|
| 2843 | 2843 | 'user' => 'user', |
| 2844 | - ), |
|
| 2844 | + ), |
|
| 2845 | 2845 | ), |
| 2846 | 2846 | '#name' => 'rules_condition_user_hasrole', |
| 2847 | 2847 | '#info' => array( |
| 2848 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 2849 | - 'label callback' => FALSE, |
|
| 2850 | - 'arguments' => array( |
|
| 2848 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 2849 | + 'label callback' => FALSE, |
|
| 2850 | + 'arguments' => array( |
|
| 2851 | 2851 | 'user' => array( |
| 2852 | - 'type' => 'user', |
|
| 2853 | - 'label' => 'User', |
|
| 2852 | + 'type' => 'user', |
|
| 2853 | + 'label' => 'User', |
|
| 2854 | 2854 | ), |
| 2855 | - ), |
|
| 2856 | - 'module' => 'User', |
|
| 2855 | + ), |
|
| 2856 | + 'module' => 'User', |
|
| 2857 | 2857 | ), |
| 2858 | 2858 | '#weight' => 0.0, |
| 2859 | - ), |
|
| 2860 | - '1' => array( |
|
| 2859 | + ), |
|
| 2860 | + '1' => array( |
|
| 2861 | 2861 | '#type' => 'OR', |
| 2862 | 2862 | '0' => array( |
| 2863 | - '#info' => array( |
|
| 2863 | + '#info' => array( |
|
| 2864 | 2864 | 'label' => 'Updated content is Forum topic', |
| 2865 | 2865 | 'arguments' => array( |
| 2866 | - 'node' => array( |
|
| 2866 | + 'node' => array( |
|
| 2867 | 2867 | 'type' => 'node', |
| 2868 | 2868 | 'label' => 'Content', |
| 2869 | - ), |
|
| 2869 | + ), |
|
| 2870 | 2870 | ), |
| 2871 | 2871 | 'module' => 'Node', |
| 2872 | - ), |
|
| 2873 | - '#name' => 'rules_condition_content_is_type', |
|
| 2874 | - '#settings' => array( |
|
| 2872 | + ), |
|
| 2873 | + '#name' => 'rules_condition_content_is_type', |
|
| 2874 | + '#settings' => array( |
|
| 2875 | 2875 | 'type' => array( |
| 2876 | - 'forum' => 'forum', |
|
| 2876 | + 'forum' => 'forum', |
|
| 2877 | 2877 | ), |
| 2878 | 2878 | '#argument map' => array( |
| 2879 | - 'node' => 'node', |
|
| 2879 | + 'node' => 'node', |
|
| 2880 | + ), |
|
| 2880 | 2881 | ), |
| 2881 | - ), |
|
| 2882 | - '#type' => 'condition', |
|
| 2883 | - '#weight' => 0.0, |
|
| 2882 | + '#type' => 'condition', |
|
| 2883 | + '#weight' => 0.0, |
|
| 2884 | 2884 | ), |
| 2885 | 2885 | '#weight' => 0.0, |
| 2886 | 2886 | '1' => array( |
| 2887 | - '#weight' => 0.0, |
|
| 2888 | - '#info' => array( |
|
| 2887 | + '#weight' => 0.0, |
|
| 2888 | + '#info' => array( |
|
| 2889 | 2889 | 'label' => 'Updated content is Team forum topic', |
| 2890 | 2890 | 'arguments' => array( |
| 2891 | - 'node' => array( |
|
| 2891 | + 'node' => array( |
|
| 2892 | 2892 | 'type' => 'node', |
| 2893 | 2893 | 'label' => 'Content', |
| 2894 | - ), |
|
| 2894 | + ), |
|
| 2895 | 2895 | ), |
| 2896 | 2896 | 'module' => 'Node', |
| 2897 | - ), |
|
| 2898 | - '#name' => 'rules_condition_content_is_type', |
|
| 2899 | - '#settings' => array( |
|
| 2897 | + ), |
|
| 2898 | + '#name' => 'rules_condition_content_is_type', |
|
| 2899 | + '#settings' => array( |
|
| 2900 | 2900 | 'type' => array( |
| 2901 | - 'team_forum' => 'team_forum', |
|
| 2901 | + 'team_forum' => 'team_forum', |
|
| 2902 | 2902 | ), |
| 2903 | 2903 | '#argument map' => array( |
| 2904 | - 'node' => 'node', |
|
| 2904 | + 'node' => 'node', |
|
| 2905 | + ), |
|
| 2905 | 2906 | ), |
| 2906 | - ), |
|
| 2907 | - '#type' => 'condition', |
|
| 2907 | + '#type' => 'condition', |
|
| 2908 | 2908 | ), |
| 2909 | - ), |
|
| 2910 | - '3' => array( |
|
| 2909 | + ), |
|
| 2910 | + '3' => array( |
|
| 2911 | 2911 | '#type' => 'condition', |
| 2912 | 2912 | '#settings' => array( |
| 2913 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 2914 | - 'vars' => array( |
|
| 2913 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 2914 | + 'vars' => array( |
|
| 2915 | 2915 | '0' => 'node', |
| 2916 | 2916 | '1' => 'node_unchanged', |
| 2917 | - ), |
|
| 2918 | - '#eval input' => array( |
|
| 2917 | + ), |
|
| 2918 | + '#eval input' => array( |
|
| 2919 | 2919 | 'token_rules_input_evaluator' => array( |
| 2920 | - 'code' => array( |
|
| 2920 | + 'code' => array( |
|
| 2921 | 2921 | '0' => ':global', |
| 2922 | - ), |
|
| 2922 | + ), |
|
| 2923 | + ), |
|
| 2923 | 2924 | ), |
| 2924 | - ), |
|
| 2925 | 2925 | ), |
| 2926 | 2926 | '#name' => 'rules_condition_custom_php', |
| 2927 | 2927 | '#info' => array( |
| 2928 | - 'label' => 'PHP code: node content is unchanged', |
|
| 2929 | - 'label callback' => FALSE, |
|
| 2930 | - 'module' => 'PHP', |
|
| 2931 | - 'eval input' => array( |
|
| 2928 | + 'label' => 'PHP code: node content is unchanged', |
|
| 2929 | + 'label callback' => FALSE, |
|
| 2930 | + 'module' => 'PHP', |
|
| 2931 | + 'eval input' => array( |
|
| 2932 | 2932 | '0' => 'code', |
| 2933 | - ), |
|
| 2933 | + ), |
|
| 2934 | 2934 | ), |
| 2935 | 2935 | '#weight' => 0.0, |
| 2936 | - ), |
|
| 2937 | - '4' => array( |
|
| 2936 | + ), |
|
| 2937 | + '4' => array( |
|
| 2938 | 2938 | '#type' => 'condition', |
| 2939 | 2939 | '#settings' => array( |
| 2940 | - 'code' => 'return $node_unchanged->status == 0 && $node->status == 1;', |
|
| 2941 | - 'vars' => array( |
|
| 2940 | + 'code' => 'return $node_unchanged->status == 0 && $node->status == 1;', |
|
| 2941 | + 'vars' => array( |
|
| 2942 | 2942 | '0' => 'node', |
| 2943 | 2943 | '1' => 'node_unchanged', |
| 2944 | - ), |
|
| 2945 | - '#eval input' => array( |
|
| 2944 | + ), |
|
| 2945 | + '#eval input' => array( |
|
| 2946 | 2946 | 'token_rules_input_evaluator' => array( |
| 2947 | - 'code' => array( |
|
| 2947 | + 'code' => array( |
|
| 2948 | 2948 | '0' => ':global', |
| 2949 | - ), |
|
| 2949 | + ), |
|
| 2950 | + ), |
|
| 2950 | 2951 | ), |
| 2951 | - ), |
|
| 2952 | 2952 | ), |
| 2953 | 2953 | '#name' => 'rules_condition_custom_php', |
| 2954 | 2954 | '#info' => array( |
| 2955 | - 'label' => 'PHP code: node status changed to unhidden', |
|
| 2956 | - 'label callback' => FALSE, |
|
| 2957 | - 'module' => 'PHP', |
|
| 2958 | - 'eval input' => array( |
|
| 2955 | + 'label' => 'PHP code: node status changed to unhidden', |
|
| 2956 | + 'label callback' => FALSE, |
|
| 2957 | + 'module' => 'PHP', |
|
| 2958 | + 'eval input' => array( |
|
| 2959 | 2959 | '0' => 'code', |
| 2960 | - ), |
|
| 2960 | + ), |
|
| 2961 | 2961 | ), |
| 2962 | 2962 | '#weight' => 0.0, |
| 2963 | - ), |
|
| 2963 | + ), |
|
| 2964 | 2964 | ), |
| 2965 | 2965 | '#actions' => array( |
| 2966 | - '0' => array( |
|
| 2966 | + '0' => array( |
|
| 2967 | 2967 | '#info' => array( |
| 2968 | - 'label' => 'Notify moderators via email', |
|
| 2969 | - 'module' => 'BOINC core', |
|
| 2970 | - 'eval input' => array( |
|
| 2968 | + 'label' => 'Notify moderators via email', |
|
| 2969 | + 'module' => 'BOINC core', |
|
| 2970 | + 'eval input' => array( |
|
| 2971 | 2971 | '0' => 'subject', |
| 2972 | 2972 | '1' => 'message', |
| 2973 | 2973 | '2' => 'from', |
| 2974 | - ), |
|
| 2974 | + ), |
|
| 2975 | 2975 | ), |
| 2976 | 2976 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 2977 | 2977 | '#settings' => array( |
| 2978 | - 'from' => '', |
|
| 2979 | - 'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin', |
|
| 2980 | - 'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2981 | - '#eval input' => array( |
|
| 2978 | + 'from' => '', |
|
| 2979 | + 'subject' => 'Forum topic at [:global:site-name] unhidden by moderator/admin', |
|
| 2980 | + 'message' => "[node:type] topic '[node:title]' has been unhidden by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 2981 | + '#eval input' => array( |
|
| 2982 | 2982 | 'token_rules_input_evaluator' => array( |
| 2983 | - 'subject' => array( |
|
| 2983 | + 'subject' => array( |
|
| 2984 | 2984 | '0' => ':global', |
| 2985 | - ), |
|
| 2986 | - 'message' => array( |
|
| 2985 | + ), |
|
| 2986 | + 'message' => array( |
|
| 2987 | 2987 | '0' => 'node', |
| 2988 | 2988 | '1' => 'user', |
| 2989 | 2989 | '2' => ':global', |
| 2990 | - ), |
|
| 2991 | - 'from' => array( |
|
| 2990 | + ), |
|
| 2991 | + 'from' => array( |
|
| 2992 | 2992 | '0' => ':global', |
| 2993 | - ), |
|
| 2993 | + ), |
|
| 2994 | 2994 | ), |
| 2995 | 2995 | 'rules_input_evaluator_php' => array( |
| 2996 | - 'message' => array( |
|
| 2996 | + 'message' => array( |
|
| 2997 | 2997 | '0' => 'node', |
| 2998 | - ), |
|
| 2998 | + ), |
|
| 2999 | + ), |
|
| 2999 | 3000 | ), |
| 3000 | - ), |
|
| 3001 | 3001 | ), |
| 3002 | 3002 | '#type' => 'action', |
| 3003 | 3003 | '#weight' => 0.0, |
| 3004 | - ), |
|
| 3004 | + ), |
|
| 3005 | 3005 | ), |
| 3006 | 3006 | '#version' => 6003, |
| 3007 | - ), |
|
| 3008 | - 'rules_forum_topic_locked_by_moderator_admin' => array( |
|
| 3007 | + ), |
|
| 3008 | + 'rules_forum_topic_locked_by_moderator_admin' => array( |
|
| 3009 | 3009 | '#type' => 'rule', |
| 3010 | 3010 | '#set' => 'event_node_update', |
| 3011 | 3011 | '#label' => 'Forum topic locked by moderator/admin', |
| 3012 | 3012 | '#active' => 1, |
| 3013 | 3013 | '#weight' => '0', |
| 3014 | 3014 | '#categories' => array( |
| 3015 | - '0' => 'boinc_standard', |
|
| 3016 | - '1' => 'moderator notification', |
|
| 3015 | + '0' => 'boinc_standard', |
|
| 3016 | + '1' => 'moderator notification', |
|
| 3017 | 3017 | ), |
| 3018 | 3018 | '#status' => 'default', |
| 3019 | 3019 | '#conditions' => array( |
| 3020 | - '0' => array( |
|
| 3020 | + '0' => array( |
|
| 3021 | 3021 | '#type' => 'condition', |
| 3022 | 3022 | '#settings' => array( |
| 3023 | - 'roles' => array( |
|
| 3023 | + 'roles' => array( |
|
| 3024 | 3024 | '0' => 3519698132, |
| 3025 | 3025 | '1' => 1271379760, |
| 3026 | - ), |
|
| 3027 | - 'operation' => 'OR', |
|
| 3028 | - '#argument map' => array( |
|
| 3026 | + ), |
|
| 3027 | + 'operation' => 'OR', |
|
| 3028 | + '#argument map' => array( |
|
| 3029 | 3029 | 'user' => 'user', |
| 3030 | - ), |
|
| 3030 | + ), |
|
| 3031 | 3031 | ), |
| 3032 | 3032 | '#name' => 'rules_condition_user_hasrole', |
| 3033 | 3033 | '#info' => array( |
| 3034 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 3035 | - 'label callback' => FALSE, |
|
| 3036 | - 'arguments' => array( |
|
| 3034 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 3035 | + 'label callback' => FALSE, |
|
| 3036 | + 'arguments' => array( |
|
| 3037 | 3037 | 'user' => array( |
| 3038 | - 'type' => 'user', |
|
| 3039 | - 'label' => 'User', |
|
| 3038 | + 'type' => 'user', |
|
| 3039 | + 'label' => 'User', |
|
| 3040 | + ), |
|
| 3040 | 3041 | ), |
| 3041 | - ), |
|
| 3042 | - 'module' => 'User', |
|
| 3042 | + 'module' => 'User', |
|
| 3043 | 3043 | ), |
| 3044 | 3044 | '#weight' => 0.0, |
| 3045 | - ), |
|
| 3046 | - '1' => array( |
|
| 3045 | + ), |
|
| 3046 | + '1' => array( |
|
| 3047 | 3047 | '#weight' => 0.0, |
| 3048 | 3048 | '0' => array( |
| 3049 | - '#weight' => 0.0, |
|
| 3050 | - '#type' => 'condition', |
|
| 3051 | - '#settings' => array( |
|
| 3049 | + '#weight' => 0.0, |
|
| 3050 | + '#type' => 'condition', |
|
| 3051 | + '#settings' => array( |
|
| 3052 | 3052 | 'type' => array( |
| 3053 | - 'forum' => 'forum', |
|
| 3053 | + 'forum' => 'forum', |
|
| 3054 | 3054 | ), |
| 3055 | 3055 | '#argument map' => array( |
| 3056 | - 'node' => 'node', |
|
| 3056 | + 'node' => 'node', |
|
| 3057 | + ), |
|
| 3057 | 3058 | ), |
| 3058 | - ), |
|
| 3059 | - '#name' => 'rules_condition_content_is_type', |
|
| 3060 | - '#info' => array( |
|
| 3059 | + '#name' => 'rules_condition_content_is_type', |
|
| 3060 | + '#info' => array( |
|
| 3061 | 3061 | 'label' => 'Updated content is Forum topic', |
| 3062 | 3062 | 'arguments' => array( |
| 3063 | - 'node' => array( |
|
| 3063 | + 'node' => array( |
|
| 3064 | 3064 | 'type' => 'node', |
| 3065 | 3065 | 'label' => 'Content', |
| 3066 | - ), |
|
| 3066 | + ), |
|
| 3067 | 3067 | ), |
| 3068 | 3068 | 'module' => 'Node', |
| 3069 | - ), |
|
| 3069 | + ), |
|
| 3070 | 3070 | ), |
| 3071 | 3071 | '#type' => 'OR', |
| 3072 | 3072 | '1' => array( |
| 3073 | - '#type' => 'condition', |
|
| 3074 | - '#settings' => array( |
|
| 3073 | + '#type' => 'condition', |
|
| 3074 | + '#settings' => array( |
|
| 3075 | 3075 | 'type' => array( |
| 3076 | - 'team_forum' => 'team_forum', |
|
| 3076 | + 'team_forum' => 'team_forum', |
|
| 3077 | 3077 | ), |
| 3078 | 3078 | '#argument map' => array( |
| 3079 | - 'node' => 'node', |
|
| 3079 | + 'node' => 'node', |
|
| 3080 | + ), |
|
| 3080 | 3081 | ), |
| 3081 | - ), |
|
| 3082 | - '#name' => 'rules_condition_content_is_type', |
|
| 3083 | - '#info' => array( |
|
| 3082 | + '#name' => 'rules_condition_content_is_type', |
|
| 3083 | + '#info' => array( |
|
| 3084 | 3084 | 'label' => 'Updated content is Team forum topic', |
| 3085 | 3085 | 'arguments' => array( |
| 3086 | - 'node' => array( |
|
| 3086 | + 'node' => array( |
|
| 3087 | 3087 | 'type' => 'node', |
| 3088 | 3088 | 'label' => 'Content', |
| 3089 | - ), |
|
| 3089 | + ), |
|
| 3090 | 3090 | ), |
| 3091 | 3091 | 'module' => 'Node', |
| 3092 | - ), |
|
| 3093 | - '#weight' => 0.0, |
|
| 3092 | + ), |
|
| 3093 | + '#weight' => 0.0, |
|
| 3094 | + ), |
|
| 3094 | 3095 | ), |
| 3095 | - ), |
|
| 3096 | - '3' => array( |
|
| 3096 | + '3' => array( |
|
| 3097 | 3097 | '#weight' => 0.0, |
| 3098 | 3098 | '#info' => array( |
| 3099 | - 'label' => 'PHP code: node content unchanged', |
|
| 3100 | - 'label callback' => FALSE, |
|
| 3101 | - 'module' => 'PHP', |
|
| 3102 | - 'eval input' => array( |
|
| 3099 | + 'label' => 'PHP code: node content unchanged', |
|
| 3100 | + 'label callback' => FALSE, |
|
| 3101 | + 'module' => 'PHP', |
|
| 3102 | + 'eval input' => array( |
|
| 3103 | 3103 | '0' => 'code', |
| 3104 | - ), |
|
| 3104 | + ), |
|
| 3105 | 3105 | ), |
| 3106 | 3106 | '#name' => 'rules_condition_custom_php', |
| 3107 | 3107 | '#settings' => array( |
| 3108 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3109 | - 'vars' => array( |
|
| 3108 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3109 | + 'vars' => array( |
|
| 3110 | 3110 | '0' => 'node', |
| 3111 | 3111 | '1' => 'node_unchanged', |
| 3112 | - ), |
|
| 3113 | - '#eval input' => array( |
|
| 3112 | + ), |
|
| 3113 | + '#eval input' => array( |
|
| 3114 | 3114 | 'token_rules_input_evaluator' => array( |
| 3115 | - 'code' => array( |
|
| 3115 | + 'code' => array( |
|
| 3116 | 3116 | '0' => ':global', |
| 3117 | - ), |
|
| 3117 | + ), |
|
| 3118 | + ), |
|
| 3118 | 3119 | ), |
| 3119 | - ), |
|
| 3120 | 3120 | ), |
| 3121 | 3121 | '#type' => 'condition', |
| 3122 | - ), |
|
| 3123 | - '4' => array( |
|
| 3122 | + ), |
|
| 3123 | + '4' => array( |
|
| 3124 | 3124 | '#weight' => 0.0, |
| 3125 | 3125 | '#info' => array( |
| 3126 | - 'label' => 'PHP code: node locked', |
|
| 3127 | - 'label callback' => FALSE, |
|
| 3128 | - 'module' => 'PHP', |
|
| 3129 | - 'eval input' => array( |
|
| 3126 | + 'label' => 'PHP code: node locked', |
|
| 3127 | + 'label callback' => FALSE, |
|
| 3128 | + 'module' => 'PHP', |
|
| 3129 | + 'eval input' => array( |
|
| 3130 | 3130 | '0' => 'code', |
| 3131 | - ), |
|
| 3131 | + ), |
|
| 3132 | 3132 | ), |
| 3133 | 3133 | '#name' => 'rules_condition_custom_php', |
| 3134 | 3134 | '#type' => 'condition', |
| 3135 | 3135 | '#settings' => array( |
| 3136 | - 'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;', |
|
| 3137 | - 'vars' => array( |
|
| 3136 | + 'code' => 'return $node_unchanged->comment == 2 && $node->comment == 1;', |
|
| 3137 | + 'vars' => array( |
|
| 3138 | 3138 | '0' => 'node', |
| 3139 | 3139 | '1' => 'node_unchanged', |
| 3140 | - ), |
|
| 3141 | - '#eval input' => array( |
|
| 3140 | + ), |
|
| 3141 | + '#eval input' => array( |
|
| 3142 | 3142 | 'token_rules_input_evaluator' => array( |
| 3143 | - 'code' => array( |
|
| 3143 | + 'code' => array( |
|
| 3144 | 3144 | '0' => ':global', |
| 3145 | - ), |
|
| 3145 | + ), |
|
| 3146 | 3146 | ), |
| 3147 | - ), |
|
| 3147 | + ), |
|
| 3148 | + ), |
|
| 3148 | 3149 | ), |
| 3149 | - ), |
|
| 3150 | 3150 | ), |
| 3151 | 3151 | '#actions' => array( |
| 3152 | - '0' => array( |
|
| 3152 | + '0' => array( |
|
| 3153 | 3153 | '#info' => array( |
| 3154 | - 'label' => 'Notify moderators via email', |
|
| 3155 | - 'module' => 'BOINC core', |
|
| 3156 | - 'eval input' => array( |
|
| 3154 | + 'label' => 'Notify moderators via email', |
|
| 3155 | + 'module' => 'BOINC core', |
|
| 3156 | + 'eval input' => array( |
|
| 3157 | 3157 | '0' => 'subject', |
| 3158 | 3158 | '1' => 'message', |
| 3159 | 3159 | '2' => 'from', |
| 3160 | - ), |
|
| 3160 | + ), |
|
| 3161 | 3161 | ), |
| 3162 | 3162 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3163 | 3163 | '#settings' => array( |
| 3164 | - 'from' => '', |
|
| 3165 | - 'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin', |
|
| 3166 | - 'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3167 | - '#eval input' => array( |
|
| 3164 | + 'from' => '', |
|
| 3165 | + 'subject' => 'Forum topic at [:global:site-name] locked by moderator/admin', |
|
| 3166 | + 'message' => "[node:type] topic '[node:title]' has been locked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3167 | + '#eval input' => array( |
|
| 3168 | 3168 | 'token_rules_input_evaluator' => array( |
| 3169 | - 'subject' => array( |
|
| 3169 | + 'subject' => array( |
|
| 3170 | 3170 | '0' => ':global', |
| 3171 | - ), |
|
| 3172 | - 'message' => array( |
|
| 3171 | + ), |
|
| 3172 | + 'message' => array( |
|
| 3173 | 3173 | '0' => 'node', |
| 3174 | 3174 | '1' => 'user', |
| 3175 | 3175 | '2' => ':global', |
| 3176 | - ), |
|
| 3177 | - 'from' => array( |
|
| 3176 | + ), |
|
| 3177 | + 'from' => array( |
|
| 3178 | 3178 | '0' => ':global', |
| 3179 | - ), |
|
| 3179 | + ), |
|
| 3180 | 3180 | ), |
| 3181 | 3181 | 'rules_input_evaluator_php' => array( |
| 3182 | - 'message' => array( |
|
| 3182 | + 'message' => array( |
|
| 3183 | 3183 | '0' => 'node', |
| 3184 | - ), |
|
| 3184 | + ), |
|
| 3185 | + ), |
|
| 3185 | 3186 | ), |
| 3186 | - ), |
|
| 3187 | 3187 | ), |
| 3188 | 3188 | '#type' => 'action', |
| 3189 | 3189 | '#weight' => 0.0, |
| 3190 | - ), |
|
| 3190 | + ), |
|
| 3191 | 3191 | ), |
| 3192 | 3192 | '#version' => 6003, |
| 3193 | - ), |
|
| 3194 | - 'rules_forum_topic_marked_sticky_by_moderator_admin' => array( |
|
| 3193 | + ), |
|
| 3194 | + 'rules_forum_topic_marked_sticky_by_moderator_admin' => array( |
|
| 3195 | 3195 | '#type' => 'rule', |
| 3196 | 3196 | '#set' => 'event_node_update', |
| 3197 | 3197 | '#label' => 'Forum topic marked sticky by moderator/admin', |
| 3198 | 3198 | '#active' => 1, |
| 3199 | 3199 | '#weight' => '0', |
| 3200 | 3200 | '#categories' => array( |
| 3201 | - '0' => 'boinc_standard', |
|
| 3202 | - '1' => 'moderator notification', |
|
| 3201 | + '0' => 'boinc_standard', |
|
| 3202 | + '1' => 'moderator notification', |
|
| 3203 | 3203 | ), |
| 3204 | 3204 | '#status' => 'default', |
| 3205 | 3205 | '#conditions' => array( |
| 3206 | - '0' => array( |
|
| 3206 | + '0' => array( |
|
| 3207 | 3207 | '#type' => 'condition', |
| 3208 | 3208 | '#settings' => array( |
| 3209 | - 'roles' => array( |
|
| 3209 | + 'roles' => array( |
|
| 3210 | 3210 | '0' => 3519698132, |
| 3211 | 3211 | '1' => 1271379760, |
| 3212 | - ), |
|
| 3213 | - 'operation' => 'OR', |
|
| 3214 | - '#argument map' => array( |
|
| 3212 | + ), |
|
| 3213 | + 'operation' => 'OR', |
|
| 3214 | + '#argument map' => array( |
|
| 3215 | 3215 | 'user' => 'user', |
| 3216 | - ), |
|
| 3216 | + ), |
|
| 3217 | 3217 | ), |
| 3218 | 3218 | '#name' => 'rules_condition_user_hasrole', |
| 3219 | 3219 | '#info' => array( |
| 3220 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 3221 | - 'label callback' => FALSE, |
|
| 3222 | - 'arguments' => array( |
|
| 3220 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 3221 | + 'label callback' => FALSE, |
|
| 3222 | + 'arguments' => array( |
|
| 3223 | 3223 | 'user' => array( |
| 3224 | - 'type' => 'user', |
|
| 3225 | - 'label' => 'User', |
|
| 3224 | + 'type' => 'user', |
|
| 3225 | + 'label' => 'User', |
|
| 3226 | + ), |
|
| 3226 | 3227 | ), |
| 3227 | - ), |
|
| 3228 | - 'module' => 'User', |
|
| 3228 | + 'module' => 'User', |
|
| 3229 | 3229 | ), |
| 3230 | 3230 | '#weight' => 0.0, |
| 3231 | - ), |
|
| 3232 | - '1' => array( |
|
| 3231 | + ), |
|
| 3232 | + '1' => array( |
|
| 3233 | 3233 | '#weight' => 0.0, |
| 3234 | 3234 | '0' => array( |
| 3235 | - '#weight' => 0.0, |
|
| 3236 | - '#type' => 'condition', |
|
| 3237 | - '#settings' => array( |
|
| 3235 | + '#weight' => 0.0, |
|
| 3236 | + '#type' => 'condition', |
|
| 3237 | + '#settings' => array( |
|
| 3238 | 3238 | 'type' => array( |
| 3239 | - 'forum' => 'forum', |
|
| 3239 | + 'forum' => 'forum', |
|
| 3240 | 3240 | ), |
| 3241 | 3241 | '#argument map' => array( |
| 3242 | - 'node' => 'node', |
|
| 3242 | + 'node' => 'node', |
|
| 3243 | + ), |
|
| 3243 | 3244 | ), |
| 3244 | - ), |
|
| 3245 | - '#name' => 'rules_condition_content_is_type', |
|
| 3246 | - '#info' => array( |
|
| 3245 | + '#name' => 'rules_condition_content_is_type', |
|
| 3246 | + '#info' => array( |
|
| 3247 | 3247 | 'label' => 'Updated content is Forum topic', |
| 3248 | 3248 | 'arguments' => array( |
| 3249 | - 'node' => array( |
|
| 3249 | + 'node' => array( |
|
| 3250 | 3250 | 'type' => 'node', |
| 3251 | 3251 | 'label' => 'Content', |
| 3252 | - ), |
|
| 3252 | + ), |
|
| 3253 | 3253 | ), |
| 3254 | 3254 | 'module' => 'Node', |
| 3255 | - ), |
|
| 3255 | + ), |
|
| 3256 | 3256 | ), |
| 3257 | 3257 | '#type' => 'OR', |
| 3258 | 3258 | '1' => array( |
| 3259 | - '#type' => 'condition', |
|
| 3260 | - '#settings' => array( |
|
| 3259 | + '#type' => 'condition', |
|
| 3260 | + '#settings' => array( |
|
| 3261 | 3261 | 'type' => array( |
| 3262 | - 'team_forum' => 'team_forum', |
|
| 3262 | + 'team_forum' => 'team_forum', |
|
| 3263 | 3263 | ), |
| 3264 | 3264 | '#argument map' => array( |
| 3265 | - 'node' => 'node', |
|
| 3265 | + 'node' => 'node', |
|
| 3266 | + ), |
|
| 3266 | 3267 | ), |
| 3267 | - ), |
|
| 3268 | - '#name' => 'rules_condition_content_is_type', |
|
| 3269 | - '#info' => array( |
|
| 3268 | + '#name' => 'rules_condition_content_is_type', |
|
| 3269 | + '#info' => array( |
|
| 3270 | 3270 | 'label' => 'Updated content is Team forum topic', |
| 3271 | 3271 | 'arguments' => array( |
| 3272 | - 'node' => array( |
|
| 3272 | + 'node' => array( |
|
| 3273 | 3273 | 'type' => 'node', |
| 3274 | 3274 | 'label' => 'Content', |
| 3275 | - ), |
|
| 3275 | + ), |
|
| 3276 | 3276 | ), |
| 3277 | 3277 | 'module' => 'Node', |
| 3278 | - ), |
|
| 3279 | - '#weight' => 0.0, |
|
| 3278 | + ), |
|
| 3279 | + '#weight' => 0.0, |
|
| 3280 | + ), |
|
| 3280 | 3281 | ), |
| 3281 | - ), |
|
| 3282 | - '3' => array( |
|
| 3282 | + '3' => array( |
|
| 3283 | 3283 | '#weight' => 0.0, |
| 3284 | 3284 | '#info' => array( |
| 3285 | - 'label' => 'PHP code: node content unchanged', |
|
| 3286 | - 'label callback' => FALSE, |
|
| 3287 | - 'module' => 'PHP', |
|
| 3288 | - 'eval input' => array( |
|
| 3285 | + 'label' => 'PHP code: node content unchanged', |
|
| 3286 | + 'label callback' => FALSE, |
|
| 3287 | + 'module' => 'PHP', |
|
| 3288 | + 'eval input' => array( |
|
| 3289 | 3289 | '0' => 'code', |
| 3290 | - ), |
|
| 3290 | + ), |
|
| 3291 | 3291 | ), |
| 3292 | 3292 | '#name' => 'rules_condition_custom_php', |
| 3293 | 3293 | '#settings' => array( |
| 3294 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3295 | - 'vars' => array( |
|
| 3294 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3295 | + 'vars' => array( |
|
| 3296 | 3296 | '0' => 'node', |
| 3297 | 3297 | '1' => 'node_unchanged', |
| 3298 | - ), |
|
| 3299 | - '#eval input' => array( |
|
| 3298 | + ), |
|
| 3299 | + '#eval input' => array( |
|
| 3300 | 3300 | 'token_rules_input_evaluator' => array( |
| 3301 | - 'code' => array( |
|
| 3301 | + 'code' => array( |
|
| 3302 | 3302 | '0' => ':global', |
| 3303 | - ), |
|
| 3303 | + ), |
|
| 3304 | + ), |
|
| 3304 | 3305 | ), |
| 3305 | - ), |
|
| 3306 | 3306 | ), |
| 3307 | 3307 | '#type' => 'condition', |
| 3308 | - ), |
|
| 3309 | - '4' => array( |
|
| 3308 | + ), |
|
| 3309 | + '4' => array( |
|
| 3310 | 3310 | '#weight' => 0.0, |
| 3311 | 3311 | '#info' => array( |
| 3312 | - 'label' => 'PHP code: node made sticky', |
|
| 3313 | - 'label callback' => FALSE, |
|
| 3314 | - 'module' => 'PHP', |
|
| 3315 | - 'eval input' => array( |
|
| 3312 | + 'label' => 'PHP code: node made sticky', |
|
| 3313 | + 'label callback' => FALSE, |
|
| 3314 | + 'module' => 'PHP', |
|
| 3315 | + 'eval input' => array( |
|
| 3316 | 3316 | '0' => 'code', |
| 3317 | - ), |
|
| 3317 | + ), |
|
| 3318 | 3318 | ), |
| 3319 | 3319 | '#name' => 'rules_condition_custom_php', |
| 3320 | 3320 | '#type' => 'condition', |
| 3321 | 3321 | '#settings' => array( |
| 3322 | - 'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;', |
|
| 3323 | - 'vars' => array( |
|
| 3322 | + 'code' => 'return $node_unchanged->sticky == 0 && $node->sticky == 1;', |
|
| 3323 | + 'vars' => array( |
|
| 3324 | 3324 | '0' => 'node', |
| 3325 | 3325 | '1' => 'node_unchanged', |
| 3326 | - ), |
|
| 3327 | - '#eval input' => array( |
|
| 3326 | + ), |
|
| 3327 | + '#eval input' => array( |
|
| 3328 | 3328 | 'token_rules_input_evaluator' => array( |
| 3329 | - 'code' => array( |
|
| 3329 | + 'code' => array( |
|
| 3330 | 3330 | '0' => ':global', |
| 3331 | - ), |
|
| 3331 | + ), |
|
| 3332 | + ), |
|
| 3332 | 3333 | ), |
| 3333 | - ), |
|
| 3334 | 3334 | ), |
| 3335 | - ), |
|
| 3335 | + ), |
|
| 3336 | 3336 | ), |
| 3337 | 3337 | '#actions' => array( |
| 3338 | - '0' => array( |
|
| 3338 | + '0' => array( |
|
| 3339 | 3339 | '#info' => array( |
| 3340 | - 'label' => 'Notify moderators via email', |
|
| 3341 | - 'module' => 'BOINC core', |
|
| 3342 | - 'eval input' => array( |
|
| 3340 | + 'label' => 'Notify moderators via email', |
|
| 3341 | + 'module' => 'BOINC core', |
|
| 3342 | + 'eval input' => array( |
|
| 3343 | 3343 | '0' => 'subject', |
| 3344 | 3344 | '1' => 'message', |
| 3345 | 3345 | '2' => 'from', |
| 3346 | - ), |
|
| 3346 | + ), |
|
| 3347 | 3347 | ), |
| 3348 | 3348 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3349 | 3349 | '#settings' => array( |
| 3350 | - 'from' => '', |
|
| 3351 | - 'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin', |
|
| 3352 | - 'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3353 | - '#eval input' => array( |
|
| 3350 | + 'from' => '', |
|
| 3351 | + 'subject' => 'Forum topic at [:global:site-name] marked sticky by moderator/admin', |
|
| 3352 | + 'message' => "[node:type] topic '[node:title]' has been marked sticky by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3353 | + '#eval input' => array( |
|
| 3354 | 3354 | 'token_rules_input_evaluator' => array( |
| 3355 | - 'subject' => array( |
|
| 3355 | + 'subject' => array( |
|
| 3356 | 3356 | '0' => ':global', |
| 3357 | - ), |
|
| 3358 | - 'message' => array( |
|
| 3357 | + ), |
|
| 3358 | + 'message' => array( |
|
| 3359 | 3359 | '0' => 'node', |
| 3360 | 3360 | '1' => 'user', |
| 3361 | 3361 | '2' => ':global', |
| 3362 | - ), |
|
| 3363 | - 'from' => array( |
|
| 3362 | + ), |
|
| 3363 | + 'from' => array( |
|
| 3364 | 3364 | '0' => ':global', |
| 3365 | - ), |
|
| 3365 | + ), |
|
| 3366 | 3366 | ), |
| 3367 | 3367 | 'rules_input_evaluator_php' => array( |
| 3368 | - 'message' => array( |
|
| 3368 | + 'message' => array( |
|
| 3369 | 3369 | '0' => 'node', |
| 3370 | - ), |
|
| 3370 | + ), |
|
| 3371 | + ), |
|
| 3371 | 3372 | ), |
| 3372 | - ), |
|
| 3373 | 3373 | ), |
| 3374 | 3374 | '#type' => 'action', |
| 3375 | 3375 | '#weight' => 0.0, |
| 3376 | - ), |
|
| 3376 | + ), |
|
| 3377 | 3377 | ), |
| 3378 | 3378 | '#version' => 6003, |
| 3379 | - ), |
|
| 3380 | - 'rules_forum_topic_marked_unsticky_by_moderator_admin' => array( |
|
| 3379 | + ), |
|
| 3380 | + 'rules_forum_topic_marked_unsticky_by_moderator_admin' => array( |
|
| 3381 | 3381 | '#type' => 'rule', |
| 3382 | 3382 | '#set' => 'event_node_update', |
| 3383 | 3383 | '#label' => 'Forum topic marked unsticky by moderator/admin', |
| 3384 | 3384 | '#active' => 1, |
| 3385 | 3385 | '#weight' => '0', |
| 3386 | 3386 | '#categories' => array( |
| 3387 | - '0' => 'boinc_standard', |
|
| 3388 | - '1' => 'moderator notification', |
|
| 3387 | + '0' => 'boinc_standard', |
|
| 3388 | + '1' => 'moderator notification', |
|
| 3389 | 3389 | ), |
| 3390 | 3390 | '#status' => 'default', |
| 3391 | 3391 | '#conditions' => array( |
| 3392 | - '0' => array( |
|
| 3392 | + '0' => array( |
|
| 3393 | 3393 | '#type' => 'condition', |
| 3394 | 3394 | '#settings' => array( |
| 3395 | - 'roles' => array( |
|
| 3395 | + 'roles' => array( |
|
| 3396 | 3396 | '0' => 3519698132, |
| 3397 | 3397 | '1' => 1271379760, |
| 3398 | - ), |
|
| 3399 | - 'operation' => 'OR', |
|
| 3400 | - '#argument map' => array( |
|
| 3398 | + ), |
|
| 3399 | + 'operation' => 'OR', |
|
| 3400 | + '#argument map' => array( |
|
| 3401 | 3401 | 'user' => 'user', |
| 3402 | - ), |
|
| 3402 | + ), |
|
| 3403 | 3403 | ), |
| 3404 | 3404 | '#name' => 'rules_condition_user_hasrole', |
| 3405 | 3405 | '#info' => array( |
| 3406 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 3407 | - 'label callback' => FALSE, |
|
| 3408 | - 'arguments' => array( |
|
| 3406 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 3407 | + 'label callback' => FALSE, |
|
| 3408 | + 'arguments' => array( |
|
| 3409 | 3409 | 'user' => array( |
| 3410 | - 'type' => 'user', |
|
| 3411 | - 'label' => 'User', |
|
| 3410 | + 'type' => 'user', |
|
| 3411 | + 'label' => 'User', |
|
| 3412 | + ), |
|
| 3412 | 3413 | ), |
| 3413 | - ), |
|
| 3414 | - 'module' => 'User', |
|
| 3414 | + 'module' => 'User', |
|
| 3415 | 3415 | ), |
| 3416 | 3416 | '#weight' => 0.0, |
| 3417 | - ), |
|
| 3418 | - '1' => array( |
|
| 3417 | + ), |
|
| 3418 | + '1' => array( |
|
| 3419 | 3419 | '#weight' => 0.0, |
| 3420 | 3420 | '0' => array( |
| 3421 | - '#weight' => 0.0, |
|
| 3422 | - '#type' => 'condition', |
|
| 3423 | - '#settings' => array( |
|
| 3421 | + '#weight' => 0.0, |
|
| 3422 | + '#type' => 'condition', |
|
| 3423 | + '#settings' => array( |
|
| 3424 | 3424 | 'type' => array( |
| 3425 | - 'forum' => 'forum', |
|
| 3425 | + 'forum' => 'forum', |
|
| 3426 | 3426 | ), |
| 3427 | 3427 | '#argument map' => array( |
| 3428 | - 'node' => 'node', |
|
| 3428 | + 'node' => 'node', |
|
| 3429 | + ), |
|
| 3429 | 3430 | ), |
| 3430 | - ), |
|
| 3431 | - '#name' => 'rules_condition_content_is_type', |
|
| 3432 | - '#info' => array( |
|
| 3431 | + '#name' => 'rules_condition_content_is_type', |
|
| 3432 | + '#info' => array( |
|
| 3433 | 3433 | 'label' => 'Updated content is Forum topic', |
| 3434 | 3434 | 'arguments' => array( |
| 3435 | - 'node' => array( |
|
| 3435 | + 'node' => array( |
|
| 3436 | 3436 | 'type' => 'node', |
| 3437 | 3437 | 'label' => 'Content', |
| 3438 | - ), |
|
| 3438 | + ), |
|
| 3439 | 3439 | ), |
| 3440 | 3440 | 'module' => 'Node', |
| 3441 | - ), |
|
| 3441 | + ), |
|
| 3442 | 3442 | ), |
| 3443 | 3443 | '#type' => 'OR', |
| 3444 | 3444 | '1' => array( |
| 3445 | - '#type' => 'condition', |
|
| 3446 | - '#settings' => array( |
|
| 3445 | + '#type' => 'condition', |
|
| 3446 | + '#settings' => array( |
|
| 3447 | 3447 | 'type' => array( |
| 3448 | - 'team_forum' => 'team_forum', |
|
| 3448 | + 'team_forum' => 'team_forum', |
|
| 3449 | 3449 | ), |
| 3450 | 3450 | '#argument map' => array( |
| 3451 | - 'node' => 'node', |
|
| 3451 | + 'node' => 'node', |
|
| 3452 | 3452 | ), |
| 3453 | - ), |
|
| 3454 | - '#name' => 'rules_condition_content_is_type', |
|
| 3455 | - '#info' => array( |
|
| 3453 | + ), |
|
| 3454 | + '#name' => 'rules_condition_content_is_type', |
|
| 3455 | + '#info' => array( |
|
| 3456 | 3456 | 'label' => 'Updated content is Team forum topic', |
| 3457 | 3457 | 'arguments' => array( |
| 3458 | - 'node' => array( |
|
| 3458 | + 'node' => array( |
|
| 3459 | 3459 | 'type' => 'node', |
| 3460 | 3460 | 'label' => 'Content', |
| 3461 | - ), |
|
| 3461 | + ), |
|
| 3462 | 3462 | ), |
| 3463 | 3463 | 'module' => 'Node', |
| 3464 | - ), |
|
| 3465 | - '#weight' => 0.0, |
|
| 3464 | + ), |
|
| 3465 | + '#weight' => 0.0, |
|
| 3466 | 3466 | ), |
| 3467 | - ), |
|
| 3468 | - '3' => array( |
|
| 3467 | + ), |
|
| 3468 | + '3' => array( |
|
| 3469 | 3469 | '#weight' => 0.0, |
| 3470 | 3470 | '#info' => array( |
| 3471 | - 'label' => 'PHP code: node content unchanged', |
|
| 3472 | - 'label callback' => FALSE, |
|
| 3473 | - 'module' => 'PHP', |
|
| 3474 | - 'eval input' => array( |
|
| 3471 | + 'label' => 'PHP code: node content unchanged', |
|
| 3472 | + 'label callback' => FALSE, |
|
| 3473 | + 'module' => 'PHP', |
|
| 3474 | + 'eval input' => array( |
|
| 3475 | 3475 | '0' => 'code', |
| 3476 | - ), |
|
| 3476 | + ), |
|
| 3477 | 3477 | ), |
| 3478 | 3478 | '#name' => 'rules_condition_custom_php', |
| 3479 | 3479 | '#settings' => array( |
| 3480 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3481 | - 'vars' => array( |
|
| 3480 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3481 | + 'vars' => array( |
|
| 3482 | 3482 | '0' => 'node', |
| 3483 | 3483 | '1' => 'node_unchanged', |
| 3484 | - ), |
|
| 3485 | - '#eval input' => array( |
|
| 3484 | + ), |
|
| 3485 | + '#eval input' => array( |
|
| 3486 | 3486 | 'token_rules_input_evaluator' => array( |
| 3487 | - 'code' => array( |
|
| 3487 | + 'code' => array( |
|
| 3488 | 3488 | '0' => ':global', |
| 3489 | - ), |
|
| 3489 | + ), |
|
| 3490 | + ), |
|
| 3490 | 3491 | ), |
| 3491 | - ), |
|
| 3492 | 3492 | ), |
| 3493 | 3493 | '#type' => 'condition', |
| 3494 | - ), |
|
| 3495 | - '4' => array( |
|
| 3494 | + ), |
|
| 3495 | + '4' => array( |
|
| 3496 | 3496 | '#weight' => 0.0, |
| 3497 | 3497 | '#info' => array( |
| 3498 | - 'label' => 'PHP code: node made sticky', |
|
| 3499 | - 'label callback' => FALSE, |
|
| 3500 | - 'module' => 'PHP', |
|
| 3501 | - 'eval input' => array( |
|
| 3498 | + 'label' => 'PHP code: node made sticky', |
|
| 3499 | + 'label callback' => FALSE, |
|
| 3500 | + 'module' => 'PHP', |
|
| 3501 | + 'eval input' => array( |
|
| 3502 | 3502 | '0' => 'code', |
| 3503 | - ), |
|
| 3503 | + ), |
|
| 3504 | 3504 | ), |
| 3505 | 3505 | '#name' => 'rules_condition_custom_php', |
| 3506 | 3506 | '#type' => 'condition', |
| 3507 | 3507 | '#settings' => array( |
| 3508 | - 'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;', |
|
| 3509 | - 'vars' => array( |
|
| 3508 | + 'code' => 'return $node_unchanged->sticky == 1 && $node->sticky == 0;', |
|
| 3509 | + 'vars' => array( |
|
| 3510 | 3510 | '0' => 'node', |
| 3511 | 3511 | '1' => 'node_unchanged', |
| 3512 | - ), |
|
| 3513 | - '#eval input' => array( |
|
| 3512 | + ), |
|
| 3513 | + '#eval input' => array( |
|
| 3514 | 3514 | 'token_rules_input_evaluator' => array( |
| 3515 | - 'code' => array( |
|
| 3515 | + 'code' => array( |
|
| 3516 | 3516 | '0' => ':global', |
| 3517 | - ), |
|
| 3517 | + ), |
|
| 3518 | + ), |
|
| 3518 | 3519 | ), |
| 3519 | - ), |
|
| 3520 | 3520 | ), |
| 3521 | - ), |
|
| 3521 | + ), |
|
| 3522 | 3522 | ), |
| 3523 | 3523 | '#actions' => array( |
| 3524 | - '0' => array( |
|
| 3524 | + '0' => array( |
|
| 3525 | 3525 | '#info' => array( |
| 3526 | - 'label' => 'Notify moderators via email', |
|
| 3527 | - 'module' => 'BOINC core', |
|
| 3528 | - 'eval input' => array( |
|
| 3526 | + 'label' => 'Notify moderators via email', |
|
| 3527 | + 'module' => 'BOINC core', |
|
| 3528 | + 'eval input' => array( |
|
| 3529 | 3529 | '0' => 'subject', |
| 3530 | 3530 | '1' => 'message', |
| 3531 | 3531 | '2' => 'from', |
| 3532 | - ), |
|
| 3532 | + ), |
|
| 3533 | 3533 | ), |
| 3534 | 3534 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3535 | 3535 | '#settings' => array( |
| 3536 | - 'from' => '', |
|
| 3537 | - 'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin', |
|
| 3538 | - 'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3539 | - '#eval input' => array( |
|
| 3536 | + 'from' => '', |
|
| 3537 | + 'subject' => 'Forum topic at [:global:site-name] marked unsticky by moderator/admin', |
|
| 3538 | + 'message' => "[node:type] topic '[node:title]' has been marked unsticky by moderator/admin [user:display-name].\r\n\\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3539 | + '#eval input' => array( |
|
| 3540 | 3540 | 'token_rules_input_evaluator' => array( |
| 3541 | - 'subject' => array( |
|
| 3541 | + 'subject' => array( |
|
| 3542 | 3542 | '0' => ':global', |
| 3543 | - ), |
|
| 3544 | - 'message' => array( |
|
| 3543 | + ), |
|
| 3544 | + 'message' => array( |
|
| 3545 | 3545 | '0' => 'node', |
| 3546 | 3546 | '1' => 'user', |
| 3547 | 3547 | '2' => ':global', |
| 3548 | - ), |
|
| 3549 | - 'from' => array( |
|
| 3548 | + ), |
|
| 3549 | + 'from' => array( |
|
| 3550 | 3550 | '0' => ':global', |
| 3551 | - ), |
|
| 3551 | + ), |
|
| 3552 | 3552 | ), |
| 3553 | 3553 | 'rules_input_evaluator_php' => array( |
| 3554 | - 'message' => array( |
|
| 3554 | + 'message' => array( |
|
| 3555 | 3555 | '0' => 'node', |
| 3556 | - ), |
|
| 3556 | + ), |
|
| 3557 | + ), |
|
| 3557 | 3558 | ), |
| 3558 | - ), |
|
| 3559 | 3559 | ), |
| 3560 | 3560 | '#type' => 'action', |
| 3561 | 3561 | '#weight' => 0.0, |
| 3562 | - ), |
|
| 3562 | + ), |
|
| 3563 | 3563 | ), |
| 3564 | 3564 | '#version' => 6003, |
| 3565 | - ), |
|
| 3566 | - 'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array( |
|
| 3565 | + ), |
|
| 3566 | + 'rules_forum_topic_nenamed_title_by_moderator_or_admin' => array( |
|
| 3567 | 3567 | '#type' => 'rule', |
| 3568 | 3568 | '#set' => 'event_node_update', |
| 3569 | 3569 | '#label' => 'Forum topic renamed title by moderator or admin', |
| 3570 | 3570 | '#active' => 1, |
| 3571 | 3571 | '#weight' => '0', |
| 3572 | 3572 | '#categories' => array( |
| 3573 | - '0' => 'boinc_standard', |
|
| 3574 | - '1' => 'moderator notification', |
|
| 3573 | + '0' => 'boinc_standard', |
|
| 3574 | + '1' => 'moderator notification', |
|
| 3575 | 3575 | ), |
| 3576 | 3576 | '#status' => 'default', |
| 3577 | 3577 | '#conditions' => array( |
| 3578 | - '0' => array( |
|
| 3578 | + '0' => array( |
|
| 3579 | 3579 | '#weight' => 0.0, |
| 3580 | 3580 | '#type' => 'condition', |
| 3581 | 3581 | '#settings' => array( |
| 3582 | - 'roles' => array( |
|
| 3582 | + 'roles' => array( |
|
| 3583 | 3583 | '0' => 3519698132, |
| 3584 | 3584 | '1' => 1271379760, |
| 3585 | - ), |
|
| 3586 | - 'operation' => 'OR', |
|
| 3587 | - '#argument map' => array( |
|
| 3585 | + ), |
|
| 3586 | + 'operation' => 'OR', |
|
| 3587 | + '#argument map' => array( |
|
| 3588 | 3588 | 'user' => 'user', |
| 3589 | - ), |
|
| 3589 | + ), |
|
| 3590 | 3590 | ), |
| 3591 | 3591 | '#name' => 'rules_condition_user_hasrole', |
| 3592 | 3592 | '#info' => array( |
| 3593 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 3594 | - 'label callback' => FALSE, |
|
| 3595 | - 'arguments' => array( |
|
| 3593 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 3594 | + 'label callback' => FALSE, |
|
| 3595 | + 'arguments' => array( |
|
| 3596 | 3596 | 'user' => array( |
| 3597 | - 'type' => 'user', |
|
| 3598 | - 'label' => 'User', |
|
| 3597 | + 'type' => 'user', |
|
| 3598 | + 'label' => 'User', |
|
| 3599 | + ), |
|
| 3599 | 3600 | ), |
| 3600 | - ), |
|
| 3601 | - 'module' => 'User', |
|
| 3601 | + 'module' => 'User', |
|
| 3602 | + ), |
|
| 3602 | 3603 | ), |
| 3603 | - ), |
|
| 3604 | - '1' => array( |
|
| 3604 | + '1' => array( |
|
| 3605 | 3605 | '#weight' => 0.0, |
| 3606 | 3606 | '0' => array( |
| 3607 | - '#weight' => 0.0, |
|
| 3608 | - '#info' => array( |
|
| 3607 | + '#weight' => 0.0, |
|
| 3608 | + '#info' => array( |
|
| 3609 | 3609 | 'label' => 'Updated content is Forum topic', |
| 3610 | 3610 | 'arguments' => array( |
| 3611 | - 'node' => array( |
|
| 3611 | + 'node' => array( |
|
| 3612 | 3612 | 'type' => 'node', |
| 3613 | 3613 | 'label' => 'Content', |
| 3614 | - ), |
|
| 3614 | + ), |
|
| 3615 | 3615 | ), |
| 3616 | 3616 | 'module' => 'Node', |
| 3617 | - ), |
|
| 3618 | - '#name' => 'rules_condition_content_is_type', |
|
| 3619 | - '#settings' => array( |
|
| 3617 | + ), |
|
| 3618 | + '#name' => 'rules_condition_content_is_type', |
|
| 3619 | + '#settings' => array( |
|
| 3620 | 3620 | 'type' => array( |
| 3621 | - 'forum' => 'forum', |
|
| 3621 | + 'forum' => 'forum', |
|
| 3622 | 3622 | ), |
| 3623 | 3623 | '#argument map' => array( |
| 3624 | - 'node' => 'node', |
|
| 3624 | + 'node' => 'node', |
|
| 3625 | + ), |
|
| 3625 | 3626 | ), |
| 3626 | - ), |
|
| 3627 | - '#type' => 'condition', |
|
| 3627 | + '#type' => 'condition', |
|
| 3628 | 3628 | ), |
| 3629 | 3629 | '#type' => 'OR', |
| 3630 | 3630 | '1' => array( |
| 3631 | - '#type' => 'condition', |
|
| 3632 | - '#settings' => array( |
|
| 3631 | + '#type' => 'condition', |
|
| 3632 | + '#settings' => array( |
|
| 3633 | 3633 | 'type' => array( |
| 3634 | - 'team_forum' => 'team_forum', |
|
| 3634 | + 'team_forum' => 'team_forum', |
|
| 3635 | 3635 | ), |
| 3636 | 3636 | '#argument map' => array( |
| 3637 | - 'node' => 'node', |
|
| 3637 | + 'node' => 'node', |
|
| 3638 | 3638 | ), |
| 3639 | - ), |
|
| 3640 | - '#name' => 'rules_condition_content_is_type', |
|
| 3641 | - '#info' => array( |
|
| 3639 | + ), |
|
| 3640 | + '#name' => 'rules_condition_content_is_type', |
|
| 3641 | + '#info' => array( |
|
| 3642 | 3642 | 'label' => 'Updated content is Team forum topic', |
| 3643 | 3643 | 'arguments' => array( |
| 3644 | - 'node' => array( |
|
| 3644 | + 'node' => array( |
|
| 3645 | 3645 | 'type' => 'node', |
| 3646 | 3646 | 'label' => 'Content', |
| 3647 | - ), |
|
| 3647 | + ), |
|
| 3648 | 3648 | ), |
| 3649 | 3649 | 'module' => 'Node', |
| 3650 | - ), |
|
| 3651 | - '#weight' => 0.0, |
|
| 3650 | + ), |
|
| 3651 | + '#weight' => 0.0, |
|
| 3652 | 3652 | ), |
| 3653 | - ), |
|
| 3654 | - '2' => array( |
|
| 3653 | + ), |
|
| 3654 | + '2' => array( |
|
| 3655 | 3655 | '#weight' => 0.0, |
| 3656 | 3656 | '#info' => array( |
| 3657 | - 'label' => 'PHP code: title changed', |
|
| 3658 | - 'label callback' => FALSE, |
|
| 3659 | - 'module' => 'PHP', |
|
| 3660 | - 'eval input' => array( |
|
| 3657 | + 'label' => 'PHP code: title changed', |
|
| 3658 | + 'label callback' => FALSE, |
|
| 3659 | + 'module' => 'PHP', |
|
| 3660 | + 'eval input' => array( |
|
| 3661 | 3661 | '0' => 'code', |
| 3662 | - ), |
|
| 3662 | + ), |
|
| 3663 | 3663 | ), |
| 3664 | 3664 | '#name' => 'rules_condition_custom_php', |
| 3665 | 3665 | '#settings' => array( |
| 3666 | - 'code' => 'return ($node->title != $node_unchanged->title);', |
|
| 3667 | - 'vars' => array( |
|
| 3666 | + 'code' => 'return ($node->title != $node_unchanged->title);', |
|
| 3667 | + 'vars' => array( |
|
| 3668 | 3668 | '0' => 'node', |
| 3669 | 3669 | '1' => 'node_unchanged', |
| 3670 | - ), |
|
| 3671 | - '#eval input' => array( |
|
| 3670 | + ), |
|
| 3671 | + '#eval input' => array( |
|
| 3672 | 3672 | 'token_rules_input_evaluator' => array( |
| 3673 | - 'code' => array( |
|
| 3673 | + 'code' => array( |
|
| 3674 | 3674 | '0' => ':global', |
| 3675 | - ), |
|
| 3675 | + ), |
|
| 3676 | + ), |
|
| 3676 | 3677 | ), |
| 3677 | - ), |
|
| 3678 | 3678 | ), |
| 3679 | 3679 | '#type' => 'condition', |
| 3680 | - ), |
|
| 3680 | + ), |
|
| 3681 | 3681 | ), |
| 3682 | 3682 | '#actions' => array( |
| 3683 | - '0' => array( |
|
| 3683 | + '0' => array( |
|
| 3684 | 3684 | '#type' => 'action', |
| 3685 | 3685 | '#settings' => array( |
| 3686 | - 'from' => '', |
|
| 3687 | - 'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin', |
|
| 3688 | - 'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3689 | - '#eval input' => array( |
|
| 3686 | + 'from' => '', |
|
| 3687 | + 'subject' => 'Forum topic at [:global:site-name] renamed by moderator/admin', |
|
| 3688 | + 'message' => "[node:type] topic '[node:title]' has its title renamed by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3689 | + '#eval input' => array( |
|
| 3690 | 3690 | 'token_rules_input_evaluator' => array( |
| 3691 | - 'subject' => array( |
|
| 3691 | + 'subject' => array( |
|
| 3692 | 3692 | '0' => ':global', |
| 3693 | - ), |
|
| 3694 | - 'message' => array( |
|
| 3693 | + ), |
|
| 3694 | + 'message' => array( |
|
| 3695 | 3695 | '0' => 'node', |
| 3696 | 3696 | '1' => 'user', |
| 3697 | 3697 | '2' => ':global', |
| 3698 | - ), |
|
| 3699 | - 'from' => array( |
|
| 3698 | + ), |
|
| 3699 | + 'from' => array( |
|
| 3700 | 3700 | '0' => ':global', |
| 3701 | - ), |
|
| 3701 | + ), |
|
| 3702 | 3702 | ), |
| 3703 | 3703 | 'rules_input_evaluator_php' => array( |
| 3704 | - 'message' => array( |
|
| 3704 | + 'message' => array( |
|
| 3705 | 3705 | '0' => 'node', |
| 3706 | - ), |
|
| 3706 | + ), |
|
| 3707 | + ), |
|
| 3707 | 3708 | ), |
| 3708 | - ), |
|
| 3709 | 3709 | ), |
| 3710 | 3710 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3711 | 3711 | '#info' => array( |
| 3712 | - 'label' => 'Notify moderators via email', |
|
| 3713 | - 'module' => 'BOINC core', |
|
| 3714 | - 'eval input' => array( |
|
| 3712 | + 'label' => 'Notify moderators via email', |
|
| 3713 | + 'module' => 'BOINC core', |
|
| 3714 | + 'eval input' => array( |
|
| 3715 | 3715 | '0' => 'subject', |
| 3716 | 3716 | '1' => 'message', |
| 3717 | 3717 | '2' => 'from', |
| 3718 | - ), |
|
| 3718 | + ), |
|
| 3719 | 3719 | ), |
| 3720 | 3720 | '#weight' => 0.0, |
| 3721 | - ), |
|
| 3721 | + ), |
|
| 3722 | 3722 | ), |
| 3723 | 3723 | '#version' => 6003, |
| 3724 | - ), |
|
| 3725 | - 'rules_forum_topic_unlocked_by_moderator_admin' => array( |
|
| 3724 | + ), |
|
| 3725 | + 'rules_forum_topic_unlocked_by_moderator_admin' => array( |
|
| 3726 | 3726 | '#type' => 'rule', |
| 3727 | 3727 | '#set' => 'event_node_update', |
| 3728 | 3728 | '#label' => 'Forum topic unlocked by moderator/admin', |
| 3729 | 3729 | '#active' => 1, |
| 3730 | 3730 | '#weight' => '0', |
| 3731 | 3731 | '#categories' => array( |
| 3732 | - '0' => 'boinc_standard', |
|
| 3733 | - '1' => 'moderator notification', |
|
| 3732 | + '0' => 'boinc_standard', |
|
| 3733 | + '1' => 'moderator notification', |
|
| 3734 | 3734 | ), |
| 3735 | 3735 | '#status' => 'default', |
| 3736 | 3736 | '#conditions' => array( |
| 3737 | - '0' => array( |
|
| 3737 | + '0' => array( |
|
| 3738 | 3738 | '#type' => 'condition', |
| 3739 | 3739 | '#settings' => array( |
| 3740 | - 'roles' => array( |
|
| 3740 | + 'roles' => array( |
|
| 3741 | 3741 | '0' => 3519698132, |
| 3742 | 3742 | '1' => 1271379760, |
| 3743 | - ), |
|
| 3744 | - 'operation' => 'OR', |
|
| 3745 | - '#argument map' => array( |
|
| 3743 | + ), |
|
| 3744 | + 'operation' => 'OR', |
|
| 3745 | + '#argument map' => array( |
|
| 3746 | 3746 | 'user' => 'user', |
| 3747 | - ), |
|
| 3747 | + ), |
|
| 3748 | 3748 | ), |
| 3749 | 3749 | '#name' => 'rules_condition_user_hasrole', |
| 3750 | 3750 | '#info' => array( |
| 3751 | - 'label' => 'User has role(s): administrator or moderator', |
|
| 3752 | - 'label callback' => FALSE, |
|
| 3753 | - 'arguments' => array( |
|
| 3751 | + 'label' => 'User has role(s): administrator or moderator', |
|
| 3752 | + 'label callback' => FALSE, |
|
| 3753 | + 'arguments' => array( |
|
| 3754 | 3754 | 'user' => array( |
| 3755 | - 'type' => 'user', |
|
| 3756 | - 'label' => 'User', |
|
| 3755 | + 'type' => 'user', |
|
| 3756 | + 'label' => 'User', |
|
| 3757 | + ), |
|
| 3757 | 3758 | ), |
| 3758 | - ), |
|
| 3759 | - 'module' => 'User', |
|
| 3759 | + 'module' => 'User', |
|
| 3760 | 3760 | ), |
| 3761 | 3761 | '#weight' => 0.0, |
| 3762 | - ), |
|
| 3763 | - '1' => array( |
|
| 3762 | + ), |
|
| 3763 | + '1' => array( |
|
| 3764 | 3764 | '#weight' => 0.0, |
| 3765 | 3765 | '0' => array( |
| 3766 | - '#weight' => 0.0, |
|
| 3767 | - '#type' => 'condition', |
|
| 3768 | - '#settings' => array( |
|
| 3766 | + '#weight' => 0.0, |
|
| 3767 | + '#type' => 'condition', |
|
| 3768 | + '#settings' => array( |
|
| 3769 | 3769 | 'type' => array( |
| 3770 | - 'forum' => 'forum', |
|
| 3770 | + 'forum' => 'forum', |
|
| 3771 | 3771 | ), |
| 3772 | 3772 | '#argument map' => array( |
| 3773 | - 'node' => 'node', |
|
| 3773 | + 'node' => 'node', |
|
| 3774 | + ), |
|
| 3774 | 3775 | ), |
| 3775 | - ), |
|
| 3776 | - '#name' => 'rules_condition_content_is_type', |
|
| 3777 | - '#info' => array( |
|
| 3776 | + '#name' => 'rules_condition_content_is_type', |
|
| 3777 | + '#info' => array( |
|
| 3778 | 3778 | 'label' => 'Updated content is Forum topic', |
| 3779 | 3779 | 'arguments' => array( |
| 3780 | - 'node' => array( |
|
| 3780 | + 'node' => array( |
|
| 3781 | 3781 | 'type' => 'node', |
| 3782 | 3782 | 'label' => 'Content', |
| 3783 | - ), |
|
| 3783 | + ), |
|
| 3784 | 3784 | ), |
| 3785 | 3785 | 'module' => 'Node', |
| 3786 | - ), |
|
| 3786 | + ), |
|
| 3787 | 3787 | ), |
| 3788 | 3788 | '#type' => 'OR', |
| 3789 | 3789 | '1' => array( |
| 3790 | - '#type' => 'condition', |
|
| 3791 | - '#settings' => array( |
|
| 3790 | + '#type' => 'condition', |
|
| 3791 | + '#settings' => array( |
|
| 3792 | 3792 | 'type' => array( |
| 3793 | - 'team_forum' => 'team_forum', |
|
| 3793 | + 'team_forum' => 'team_forum', |
|
| 3794 | 3794 | ), |
| 3795 | 3795 | '#argument map' => array( |
| 3796 | - 'node' => 'node', |
|
| 3796 | + 'node' => 'node', |
|
| 3797 | + ), |
|
| 3797 | 3798 | ), |
| 3798 | - ), |
|
| 3799 | - '#name' => 'rules_condition_content_is_type', |
|
| 3800 | - '#info' => array( |
|
| 3799 | + '#name' => 'rules_condition_content_is_type', |
|
| 3800 | + '#info' => array( |
|
| 3801 | 3801 | 'label' => 'Updated content is Team forum topic', |
| 3802 | 3802 | 'arguments' => array( |
| 3803 | - 'node' => array( |
|
| 3803 | + 'node' => array( |
|
| 3804 | 3804 | 'type' => 'node', |
| 3805 | 3805 | 'label' => 'Content', |
| 3806 | - ), |
|
| 3806 | + ), |
|
| 3807 | 3807 | ), |
| 3808 | 3808 | 'module' => 'Node', |
| 3809 | - ), |
|
| 3810 | - '#weight' => 0.0, |
|
| 3809 | + ), |
|
| 3810 | + '#weight' => 0.0, |
|
| 3811 | 3811 | ), |
| 3812 | - ), |
|
| 3813 | - '3' => array( |
|
| 3812 | + ), |
|
| 3813 | + '3' => array( |
|
| 3814 | 3814 | '#weight' => 0.0, |
| 3815 | 3815 | '#info' => array( |
| 3816 | - 'label' => 'PHP code: node content unchanged', |
|
| 3817 | - 'label callback' => FALSE, |
|
| 3818 | - 'module' => 'PHP', |
|
| 3819 | - 'eval input' => array( |
|
| 3816 | + 'label' => 'PHP code: node content unchanged', |
|
| 3817 | + 'label callback' => FALSE, |
|
| 3818 | + 'module' => 'PHP', |
|
| 3819 | + 'eval input' => array( |
|
| 3820 | 3820 | '0' => 'code', |
| 3821 | - ), |
|
| 3821 | + ), |
|
| 3822 | 3822 | ), |
| 3823 | 3823 | '#name' => 'rules_condition_custom_php', |
| 3824 | 3824 | '#settings' => array( |
| 3825 | - 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3826 | - 'vars' => array( |
|
| 3825 | + 'code' => 'return $node->body == $node_unchanged->body;', |
|
| 3826 | + 'vars' => array( |
|
| 3827 | 3827 | '0' => 'node', |
| 3828 | 3828 | '1' => 'node_unchanged', |
| 3829 | - ), |
|
| 3830 | - '#eval input' => array( |
|
| 3829 | + ), |
|
| 3830 | + '#eval input' => array( |
|
| 3831 | 3831 | 'token_rules_input_evaluator' => array( |
| 3832 | - 'code' => array( |
|
| 3832 | + 'code' => array( |
|
| 3833 | 3833 | '0' => ':global', |
| 3834 | - ), |
|
| 3834 | + ), |
|
| 3835 | + ), |
|
| 3835 | 3836 | ), |
| 3836 | - ), |
|
| 3837 | 3837 | ), |
| 3838 | 3838 | '#type' => 'condition', |
| 3839 | - ), |
|
| 3840 | - '4' => array( |
|
| 3839 | + ), |
|
| 3840 | + '4' => array( |
|
| 3841 | 3841 | '#weight' => 0.0, |
| 3842 | 3842 | '#info' => array( |
| 3843 | - 'label' => 'PHP code: node unlocked', |
|
| 3844 | - 'label callback' => FALSE, |
|
| 3845 | - 'module' => 'PHP', |
|
| 3846 | - 'eval input' => array( |
|
| 3843 | + 'label' => 'PHP code: node unlocked', |
|
| 3844 | + 'label callback' => FALSE, |
|
| 3845 | + 'module' => 'PHP', |
|
| 3846 | + 'eval input' => array( |
|
| 3847 | 3847 | '0' => 'code', |
| 3848 | - ), |
|
| 3848 | + ), |
|
| 3849 | 3849 | ), |
| 3850 | 3850 | '#name' => 'rules_condition_custom_php', |
| 3851 | 3851 | '#type' => 'condition', |
| 3852 | 3852 | '#settings' => array( |
| 3853 | - 'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;', |
|
| 3854 | - 'vars' => array( |
|
| 3853 | + 'code' => 'return $node_unchanged->comment == 1 && $node->comment == 2;', |
|
| 3854 | + 'vars' => array( |
|
| 3855 | 3855 | '0' => 'node', |
| 3856 | 3856 | '1' => 'node_unchanged', |
| 3857 | - ), |
|
| 3858 | - '#eval input' => array( |
|
| 3857 | + ), |
|
| 3858 | + '#eval input' => array( |
|
| 3859 | 3859 | 'token_rules_input_evaluator' => array( |
| 3860 | - 'code' => array( |
|
| 3860 | + 'code' => array( |
|
| 3861 | 3861 | '0' => ':global', |
| 3862 | - ), |
|
| 3862 | + ), |
|
| 3863 | 3863 | ), |
| 3864 | - ), |
|
| 3864 | + ), |
|
| 3865 | + ), |
|
| 3865 | 3866 | ), |
| 3866 | - ), |
|
| 3867 | 3867 | ), |
| 3868 | 3868 | '#actions' => array( |
| 3869 | - '0' => array( |
|
| 3869 | + '0' => array( |
|
| 3870 | 3870 | '#info' => array( |
| 3871 | - 'label' => 'Notify moderators via email', |
|
| 3872 | - 'module' => 'BOINC core', |
|
| 3873 | - 'eval input' => array( |
|
| 3871 | + 'label' => 'Notify moderators via email', |
|
| 3872 | + 'module' => 'BOINC core', |
|
| 3873 | + 'eval input' => array( |
|
| 3874 | 3874 | '0' => 'subject', |
| 3875 | 3875 | '1' => 'message', |
| 3876 | 3876 | '2' => 'from', |
| 3877 | - ), |
|
| 3877 | + ), |
|
| 3878 | 3878 | ), |
| 3879 | 3879 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3880 | 3880 | '#settings' => array( |
| 3881 | - 'from' => '', |
|
| 3882 | - 'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin', |
|
| 3883 | - 'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3884 | - '#eval input' => array( |
|
| 3881 | + 'from' => '', |
|
| 3882 | + 'subject' => 'Forum topic at [:global:site-name] unlocked by moderator/admin', |
|
| 3883 | + 'message' => "[node:type] topic '[node:title]' has been unlocked by moderator/admin [user:display-name].\r\n\r\nLink: <?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>", |
|
| 3884 | + '#eval input' => array( |
|
| 3885 | 3885 | 'token_rules_input_evaluator' => array( |
| 3886 | - 'subject' => array( |
|
| 3886 | + 'subject' => array( |
|
| 3887 | 3887 | '0' => ':global', |
| 3888 | - ), |
|
| 3889 | - 'message' => array( |
|
| 3888 | + ), |
|
| 3889 | + 'message' => array( |
|
| 3890 | 3890 | '0' => 'node', |
| 3891 | 3891 | '1' => 'user', |
| 3892 | 3892 | '2' => ':global', |
| 3893 | - ), |
|
| 3894 | - 'from' => array( |
|
| 3893 | + ), |
|
| 3894 | + 'from' => array( |
|
| 3895 | 3895 | '0' => ':global', |
| 3896 | - ), |
|
| 3896 | + ), |
|
| 3897 | 3897 | ), |
| 3898 | 3898 | 'rules_input_evaluator_php' => array( |
| 3899 | - 'message' => array( |
|
| 3899 | + 'message' => array( |
|
| 3900 | 3900 | '0' => 'node', |
| 3901 | - ), |
|
| 3901 | + ), |
|
| 3902 | + ), |
|
| 3902 | 3903 | ), |
| 3903 | - ), |
|
| 3904 | 3904 | ), |
| 3905 | 3905 | '#type' => 'action', |
| 3906 | 3906 | '#weight' => 0.0, |
| 3907 | - ), |
|
| 3907 | + ), |
|
| 3908 | 3908 | ), |
| 3909 | 3909 | '#version' => 6003, |
| 3910 | - ), |
|
| 3911 | - 'rules_offensive_comment_reported' => array( |
|
| 3910 | + ), |
|
| 3911 | + 'rules_offensive_comment_reported' => array( |
|
| 3912 | 3912 | '#type' => 'rule', |
| 3913 | 3913 | '#set' => 'event_flag_flagged_abuse_comment', |
| 3914 | 3914 | '#label' => 'Offensive comment reported', |
| 3915 | 3915 | '#active' => 1, |
| 3916 | 3916 | '#weight' => '0', |
| 3917 | 3917 | '#categories' => array( |
| 3918 | - '0' => 'moderator notification', |
|
| 3919 | - '1' => 'boinc_standard', |
|
| 3918 | + '0' => 'moderator notification', |
|
| 3919 | + '1' => 'boinc_standard', |
|
| 3920 | 3920 | ), |
| 3921 | 3921 | '#status' => 'default', |
| 3922 | 3922 | '#conditions' => array(), |
| 3923 | 3923 | '#actions' => array( |
| 3924 | - '1' => array( |
|
| 3924 | + '1' => array( |
|
| 3925 | 3925 | '#info' => array( |
| 3926 | - 'label' => 'Notify moderators via email', |
|
| 3927 | - 'module' => 'BOINC core', |
|
| 3928 | - 'eval input' => array( |
|
| 3926 | + 'label' => 'Notify moderators via email', |
|
| 3927 | + 'module' => 'BOINC core', |
|
| 3928 | + 'eval input' => array( |
|
| 3929 | 3929 | '0' => 'subject', |
| 3930 | 3930 | '1' => 'message', |
| 3931 | 3931 | '2' => 'from', |
| 3932 | - ), |
|
| 3932 | + ), |
|
| 3933 | 3933 | ), |
| 3934 | 3934 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 3935 | 3935 | '#settings' => array( |
| 3936 | - 'from' => '', |
|
| 3937 | - 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 3938 | - '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:\r\n\r\n<?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]\r\n\r\nTotal reports of this comment: [comment:flag-abuse-comment-count]", |
|
| 3939 | - '#eval input' => array( |
|
| 3936 | + 'from' => '', |
|
| 3937 | + 'subject' => 'Report of offensive [node:type] comment at [:global:site-name]', |
|
| 3938 | + '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:\r\n\r\n<?php print url('<front>', array('absolute' => TRUE, 'language' => 'en')); ?>/goto/comment/[comment:comment-cid]\r\n\r\nTotal reports of this comment: [comment:flag-abuse-comment-count]", |
|
| 3939 | + '#eval input' => array( |
|
| 3940 | 3940 | 'token_rules_input_evaluator' => array( |
| 3941 | - 'subject' => array( |
|
| 3941 | + 'subject' => array( |
|
| 3942 | 3942 | '0' => 'node', |
| 3943 | 3943 | '1' => ':global', |
| 3944 | - ), |
|
| 3945 | - 'message' => array( |
|
| 3944 | + ), |
|
| 3945 | + 'message' => array( |
|
| 3946 | 3946 | '0' => 'flagging_user', |
| 3947 | 3947 | '1' => 'comment', |
| 3948 | 3948 | '2' => 'node', |
| 3949 | 3949 | '3' => ':global', |
| 3950 | - ), |
|
| 3951 | - 'from' => array( |
|
| 3950 | + ), |
|
| 3951 | + 'from' => array( |
|
| 3952 | 3952 | '0' => ':global', |
| 3953 | - ), |
|
| 3953 | + ), |
|
| 3954 | 3954 | ), |
| 3955 | 3955 | 'rules_input_evaluator_php' => array( |
| 3956 | - 'message' => array(), |
|
| 3956 | + 'message' => array(), |
|
| 3957 | + ), |
|
| 3957 | 3958 | ), |
| 3958 | - ), |
|
| 3959 | 3959 | ), |
| 3960 | 3960 | '#type' => 'action', |
| 3961 | 3961 | '#weight' => 0.0, |
| 3962 | - ), |
|
| 3962 | + ), |
|
| 3963 | 3963 | ), |
| 3964 | 3964 | '#version' => 6003, |
| 3965 | - ), |
|
| 3966 | - 'rules_offensive_content_reported' => array( |
|
| 3965 | + ), |
|
| 3966 | + 'rules_offensive_content_reported' => array( |
|
| 3967 | 3967 | '#type' => 'rule', |
| 3968 | 3968 | '#set' => 'event_flag_flagged_abuse_node', |
| 3969 | 3969 | '#label' => 'Offensive content reported', |
| 3970 | 3970 | '#active' => 1, |
| 3971 | 3971 | '#weight' => '0', |
| 3972 | 3972 | '#categories' => array( |
| 3973 | - '0' => 'moderator notification', |
|
| 3974 | - 'boinc_standard' => 'boinc_standard', |
|
| 3973 | + '0' => 'moderator notification', |
|
| 3974 | + 'boinc_standard' => 'boinc_standard', |
|
| 3975 | 3975 | ), |
| 3976 | 3976 | '#status' => 'default', |
| 3977 | 3977 | '#conditions' => array(), |
| 3978 | 3978 | '#actions' => array( |
| 3979 | - '1' => array( |
|
| 3979 | + '1' => array( |
|
| 3980 | 3980 | '#type' => 'action', |
| 3981 | 3981 | '#settings' => array( |
| 3982 | - 'from' => '', |
|
| 3983 | - 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 3984 | - 'message' => "[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>\r\n\r\nTotal reports of this content: [node:flag-abuse-node-count]", |
|
| 3985 | - '#eval input' => array( |
|
| 3982 | + 'from' => '', |
|
| 3983 | + 'subject' => 'Report of offensive [node:type] content at [:global:site-name]', |
|
| 3984 | + 'message' => "[flagging_user:display-name] has reported the following [node:type] content as being offensive or inappropriate for the [:global:site-name] site:\r\n\r\n<?php print url('node/' . \$node->nid, array('absolute' => TRUE, 'language' => 'en')); ?>\r\n\r\nTotal reports of this content: [node:flag-abuse-node-count]", |
|
| 3985 | + '#eval input' => array( |
|
| 3986 | 3986 | 'token_rules_input_evaluator' => array( |
| 3987 | - 'subject' => array( |
|
| 3987 | + 'subject' => array( |
|
| 3988 | 3988 | '0' => 'node', |
| 3989 | 3989 | '1' => ':global', |
| 3990 | - ), |
|
| 3991 | - 'message' => array( |
|
| 3990 | + ), |
|
| 3991 | + 'message' => array( |
|
| 3992 | 3992 | '0' => 'flagging_user', |
| 3993 | 3993 | '1' => 'node', |
| 3994 | 3994 | '2' => ':global', |
| 3995 | - ), |
|
| 3996 | - 'from' => array( |
|
| 3995 | + ), |
|
| 3996 | + 'from' => array( |
|
| 3997 | 3997 | '0' => ':global', |
| 3998 | - ), |
|
| 3998 | + ), |
|
| 3999 | 3999 | ), |
| 4000 | 4000 | 'rules_input_evaluator_php' => array( |
| 4001 | - 'message' => array( |
|
| 4001 | + 'message' => array( |
|
| 4002 | 4002 | '0' => 'node', |
| 4003 | - ), |
|
| 4003 | + ), |
|
| 4004 | + ), |
|
| 4004 | 4005 | ), |
| 4005 | - ), |
|
| 4006 | 4006 | ), |
| 4007 | 4007 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 4008 | 4008 | '#info' => array( |
| 4009 | - 'label' => 'Notify moderators via email', |
|
| 4010 | - 'module' => 'BOINC core', |
|
| 4011 | - 'eval input' => array( |
|
| 4009 | + 'label' => 'Notify moderators via email', |
|
| 4010 | + 'module' => 'BOINC core', |
|
| 4011 | + 'eval input' => array( |
|
| 4012 | 4012 | '0' => 'subject', |
| 4013 | 4013 | '1' => 'message', |
| 4014 | 4014 | '2' => 'from', |
| 4015 | - ), |
|
| 4015 | + ), |
|
| 4016 | 4016 | ), |
| 4017 | 4017 | '#weight' => 0.0, |
| 4018 | - ), |
|
| 4018 | + ), |
|
| 4019 | 4019 | ), |
| 4020 | 4020 | '#version' => 6003, |
| 4021 | - ), |
|
| 4022 | - 'rules_offensive_user_reported' => array( |
|
| 4021 | + ), |
|
| 4022 | + 'rules_offensive_user_reported' => array( |
|
| 4023 | 4023 | '#type' => 'rule', |
| 4024 | 4024 | '#set' => 'event_flag_flagged_abuse_user', |
| 4025 | 4025 | '#label' => 'Offensive user reported', |
| 4026 | 4026 | '#active' => 1, |
| 4027 | 4027 | '#weight' => '0', |
| 4028 | 4028 | '#categories' => array( |
| 4029 | - '0' => 'moderator notification', |
|
| 4030 | - 'boinc_standard' => 'boinc_standard', |
|
| 4029 | + '0' => 'moderator notification', |
|
| 4030 | + 'boinc_standard' => 'boinc_standard', |
|
| 4031 | 4031 | ), |
| 4032 | 4032 | '#status' => 'default', |
| 4033 | 4033 | '#conditions' => array(), |
| 4034 | 4034 | '#actions' => array( |
| 4035 | - '1' => array( |
|
| 4035 | + '1' => array( |
|
| 4036 | 4036 | '#type' => 'action', |
| 4037 | 4037 | '#settings' => array( |
| 4038 | - 'from' => '', |
|
| 4039 | - 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 4040 | - 'message' => "[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior:\r\n\r\n<?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/account/[account:uid]\r\n\r\nTotal current reports of this user: [account:flag-abuse-user-count]", |
|
| 4041 | - '#eval input' => array( |
|
| 4038 | + 'from' => '', |
|
| 4039 | + 'subject' => 'Report of offensive user at [:global:site-name]', |
|
| 4040 | + 'message' => "[flagging_user:display-name] has reported [account:display-name] for inappropriate behavior:\r\n\r\n<?php print url(\'<front>\', array(\'absolute\' => TRUE, \'language\' => \'en\')); ?>/account/[account:uid]\r\n\r\nTotal current reports of this user: [account:flag-abuse-user-count]", |
|
| 4041 | + '#eval input' => array( |
|
| 4042 | 4042 | 'token_rules_input_evaluator' => array( |
| 4043 | - 'subject' => array( |
|
| 4043 | + 'subject' => array( |
|
| 4044 | 4044 | '0' => ':global', |
| 4045 | - ), |
|
| 4046 | - 'message' => array( |
|
| 4045 | + ), |
|
| 4046 | + 'message' => array( |
|
| 4047 | 4047 | '0' => 'flagging_user', |
| 4048 | 4048 | '1' => 'account', |
| 4049 | 4049 | '2' => ':global', |
| 4050 | - ), |
|
| 4051 | - 'from' => array( |
|
| 4050 | + ), |
|
| 4051 | + 'from' => array( |
|
| 4052 | 4052 | '0' => ':global', |
| 4053 | - ), |
|
| 4053 | + ), |
|
| 4054 | 4054 | ), |
| 4055 | 4055 | 'rules_input_evaluator_php' => array( |
| 4056 | - 'message' => array(), |
|
| 4056 | + 'message' => array(), |
|
| 4057 | + ), |
|
| 4057 | 4058 | ), |
| 4058 | - ), |
|
| 4059 | 4059 | ), |
| 4060 | 4060 | '#name' => 'boinccore_rules_action_mail_to_moderators', |
| 4061 | 4061 | '#info' => array( |
| 4062 | - 'label' => 'Notify moderators via email', |
|
| 4063 | - 'module' => 'BOINC core', |
|
| 4064 | - 'eval input' => array( |
|
| 4062 | + 'label' => 'Notify moderators via email', |
|
| 4063 | + 'module' => 'BOINC core', |
|
| 4064 | + 'eval input' => array( |
|
| 4065 | 4065 | '0' => 'subject', |
| 4066 | 4066 | '1' => 'message', |
| 4067 | 4067 | '2' => 'from', |
| 4068 | - ), |
|
| 4068 | + ), |
|
| 4069 | 4069 | ), |
| 4070 | 4070 | '#weight' => 0.0, |
| 4071 | - ), |
|
| 4071 | + ), |
|
| 4072 | 4072 | ), |
| 4073 | 4073 | '#version' => 6003, |
| 4074 | - ), |
|
| 4074 | + ), |
|
| 4075 | 4075 | ), |
| 4076 | - ); |
|
| 4076 | + ); |
|
| 4077 | 4077 | } |
| 4078 | 4078 | |
| 4079 | 4079 | /** |
| 4080 | 4080 | * Implementation of hook_views_api(). |
| 4081 | 4081 | */ |
| 4082 | 4082 | function boinc_standard_views_api() { |
| 4083 | - return array( |
|
| 4083 | + return array( |
|
| 4084 | 4084 | 'api' => '2', |
| 4085 | - ); |
|
| 4085 | + ); |
|
| 4086 | 4086 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | $flags['abuse_comment_1'] = array( |
| 32 | 32 | 'content_type' => 'comment', |
| 33 | 33 | 'title' => 'Comment Abuse 1 SPAM', |
| 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_comment_2'] = array( |
| 67 | 67 | 'content_type' => 'comment', |
| 68 | 68 | 'title' => 'Comment Abuse 2 LINK', |
| 69 | - 'global' => FALSE, |
|
| 69 | + 'global' => false, |
|
| 70 | 70 | 'types' => array( |
| 71 | 71 | '0' => 'forum', |
| 72 | 72 | '1' => 'news', |
@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $flags['abuse_comment_3'] = array( |
| 102 | 102 | 'content_type' => 'comment', |
| 103 | 103 | 'title' => 'Comment Abuse 3 Hostile', |
| 104 | - 'global' => FALSE, |
|
| 104 | + 'global' => false, |
|
| 105 | 105 | 'types' => array( |
| 106 | 106 | '0' => 'forum', |
| 107 | 107 | '1' => 'news', |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | $flags['abuse_comment_4'] = array( |
| 137 | 137 | 'content_type' => 'comment', |
| 138 | 138 | 'title' => 'Comment Abuse 4 Not Kid Friendly', |
| 139 | - 'global' => FALSE, |
|
| 139 | + 'global' => false, |
|
| 140 | 140 | 'types' => array( |
| 141 | 141 | '0' => 'forum', |
| 142 | 142 | '1' => 'news', |
@@ -171,7 +171,7 @@ discard block |
||
| 171 | 171 | $flags['abuse_comment_5'] = array( |
| 172 | 172 | 'content_type' => 'comment', |
| 173 | 173 | 'title' => 'Comment Abuse 5 Other', |
| 174 | - 'global' => FALSE, |
|
| 174 | + 'global' => false, |
|
| 175 | 175 | 'types' => array( |
| 176 | 176 | '0' => 'forum', |
| 177 | 177 | '1' => 'news', |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | $flags['abuse_node_1'] = array( |
| 242 | 242 | 'content_type' => 'node', |
| 243 | 243 | 'title' => 'Node Abuse 1 SPAM', |
| 244 | - 'global' => FALSE, |
|
| 244 | + 'global' => false, |
|
| 245 | 245 | 'types' => array( |
| 246 | 246 | '0' => 'forum', |
| 247 | 247 | '1' => 'news', |
@@ -279,7 +279,7 @@ discard block |
||
| 279 | 279 | $flags['abuse_node_2'] = array( |
| 280 | 280 | 'content_type' => 'node', |
| 281 | 281 | 'title' => 'Node Abuse 2 Link', |
| 282 | - 'global' => FALSE, |
|
| 282 | + 'global' => false, |
|
| 283 | 283 | 'types' => array( |
| 284 | 284 | '0' => 'forum', |
| 285 | 285 | '1' => 'news', |
@@ -317,7 +317,7 @@ discard block |
||
| 317 | 317 | $flags['abuse_node_3'] = array( |
| 318 | 318 | 'content_type' => 'node', |
| 319 | 319 | 'title' => 'Node Abuse 3 Hostile', |
| 320 | - 'global' => FALSE, |
|
| 320 | + 'global' => false, |
|
| 321 | 321 | 'types' => array( |
| 322 | 322 | '0' => 'forum', |
| 323 | 323 | '1' => 'news', |
@@ -355,7 +355,7 @@ discard block |
||
| 355 | 355 | $flags['abuse_node_4'] = array( |
| 356 | 356 | 'content_type' => 'node', |
| 357 | 357 | 'title' => 'Node Abuse 4 Not Kid Friendly', |
| 358 | - 'global' => FALSE, |
|
| 358 | + 'global' => false, |
|
| 359 | 359 | 'types' => array( |
| 360 | 360 | '0' => 'forum', |
| 361 | 361 | '1' => 'news', |
@@ -393,7 +393,7 @@ discard block |
||
| 393 | 393 | $flags['abuse_node_5'] = array( |
| 394 | 394 | 'content_type' => 'node', |
| 395 | 395 | 'title' => 'Node Abuse 5 Other', |
| 396 | - 'global' => FALSE, |
|
| 396 | + 'global' => false, |
|
| 397 | 397 | 'types' => array( |
| 398 | 398 | '0' => 'forum', |
| 399 | 399 | '1' => 'news', |
@@ -431,7 +431,7 @@ discard block |
||
| 431 | 431 | $flags['abuse_node_meta'] = array( |
| 432 | 432 | 'content_type' => 'node', |
| 433 | 433 | 'title' => 'Node Abuse meta', |
| 434 | - 'global' => FALSE, |
|
| 434 | + 'global' => false, |
|
| 435 | 435 | 'types' => array( |
| 436 | 436 | '0' => 'forum', |
| 437 | 437 | '1' => 'news', |
@@ -469,7 +469,7 @@ discard block |
||
| 469 | 469 | $flags['abuse_user_1'] = array( |
| 470 | 470 | 'content_type' => 'user', |
| 471 | 471 | 'title' => 'User Abuse 1 SPAM', |
| 472 | - 'global' => FALSE, |
|
| 472 | + 'global' => false, |
|
| 473 | 473 | 'types' => array(), |
| 474 | 474 | 'flag_short' => 'Report User SPAM', |
| 475 | 475 | 'flag_long' => 'Report this user profile as SPAM.', |
@@ -500,7 +500,7 @@ discard block |
||
| 500 | 500 | $flags['abuse_user_2'] = array( |
| 501 | 501 | 'content_type' => 'user', |
| 502 | 502 | 'title' => 'User Abuse 2 Link', |
| 503 | - 'global' => FALSE, |
|
| 503 | + 'global' => false, |
|
| 504 | 504 | 'types' => array(), |
| 505 | 505 | 'flag_short' => 'Report as abusive link', |
| 506 | 506 | 'flag_long' => 'Report user profile as abusive link.', |
@@ -531,7 +531,7 @@ discard block |
||
| 531 | 531 | $flags['abuse_user_3'] = array( |
| 532 | 532 | 'content_type' => 'user', |
| 533 | 533 | 'title' => 'User Abuse 3 Not Kid Friendly', |
| 534 | - 'global' => FALSE, |
|
| 534 | + 'global' => false, |
|
| 535 | 535 | 'types' => array(), |
| 536 | 536 | 'flag_short' => 'Report as not kid-friendly', |
| 537 | 537 | 'flag_long' => 'Report this user profile as not kid-friendly.', |
@@ -562,7 +562,7 @@ discard block |
||
| 562 | 562 | $flags['abuse_user_4'] = array( |
| 563 | 563 | 'content_type' => 'user', |
| 564 | 564 | 'title' => 'User Abuse 4 Other', |
| 565 | - 'global' => FALSE, |
|
| 565 | + 'global' => false, |
|
| 566 | 566 | 'types' => array(), |
| 567 | 567 | 'flag_short' => 'Other', |
| 568 | 568 | 'flag_long' => 'Report this user profile - other reason.', |
@@ -593,7 +593,7 @@ discard block |
||
| 593 | 593 | $flags['abuse_user_meta'] = array( |
| 594 | 594 | 'content_type' => 'user', |
| 595 | 595 | 'title' => 'User Abuse Meta', |
| 596 | - 'global' => FALSE, |
|
| 596 | + 'global' => false, |
|
| 597 | 597 | 'types' => array(), |
| 598 | 598 | 'flag_short' => 'Report User', |
| 599 | 599 | 'flag_long' => 'Report User', |
@@ -2089,7 +2089,7 @@ discard block |
||
| 2089 | 2089 | '#weight' => 0.0, |
| 2090 | 2090 | '#info' => array( |
| 2091 | 2091 | 'label' => 'Compare two users: acting user (who edited the comment) is NOT the comment author', |
| 2092 | - 'label callback' => FALSE, |
|
| 2092 | + 'label callback' => false, |
|
| 2093 | 2093 | 'arguments' => array( |
| 2094 | 2094 | 'user1' => array( |
| 2095 | 2095 | 'type' => 'user', |
@@ -2176,7 +2176,7 @@ discard block |
||
| 2176 | 2176 | '#name' => 'rules_condition_user_comparison', |
| 2177 | 2177 | '#info' => array( |
| 2178 | 2178 | 'label' => 'Compare two users: acting user (who unhid the comment) is NOT the comment author', |
| 2179 | - 'label callback' => FALSE, |
|
| 2179 | + 'label callback' => false, |
|
| 2180 | 2180 | 'arguments' => array( |
| 2181 | 2181 | 'user1' => array( |
| 2182 | 2182 | 'type' => 'user', |
@@ -2251,7 +2251,7 @@ discard block |
||
| 2251 | 2251 | '#negate' => 1, |
| 2252 | 2252 | '#info' => array( |
| 2253 | 2253 | 'label' => 'Compare two users: acting user (who hid the comment) is NOT the comment author', |
| 2254 | - 'label callback' => FALSE, |
|
| 2254 | + 'label callback' => false, |
|
| 2255 | 2255 | 'arguments' => array( |
| 2256 | 2256 | 'user1' => array( |
| 2257 | 2257 | 'type' => 'user', |
@@ -2343,7 +2343,7 @@ discard block |
||
| 2343 | 2343 | '#name' => 'rules_condition_user_hasrole', |
| 2344 | 2344 | '#info' => array( |
| 2345 | 2345 | 'label' => 'User has role(s): administrator or moderator', |
| 2346 | - 'label callback' => FALSE, |
|
| 2346 | + 'label callback' => false, |
|
| 2347 | 2347 | 'arguments' => array( |
| 2348 | 2348 | 'user' => array( |
| 2349 | 2349 | 'type' => 'user', |
@@ -2407,7 +2407,7 @@ discard block |
||
| 2407 | 2407 | '#weight' => 0.0, |
| 2408 | 2408 | '#info' => array( |
| 2409 | 2409 | 'label' => 'PHP code: content changed', |
| 2410 | - 'label callback' => FALSE, |
|
| 2410 | + 'label callback' => false, |
|
| 2411 | 2411 | 'module' => 'PHP', |
| 2412 | 2412 | 'eval input' => array( |
| 2413 | 2413 | '0' => 'code', |
@@ -2501,7 +2501,7 @@ discard block |
||
| 2501 | 2501 | '#name' => 'rules_condition_user_hasrole', |
| 2502 | 2502 | '#info' => array( |
| 2503 | 2503 | 'label' => 'User has role(s): administrator or moderator', |
| 2504 | - 'label callback' => FALSE, |
|
| 2504 | + 'label callback' => false, |
|
| 2505 | 2505 | 'arguments' => array( |
| 2506 | 2506 | 'user' => array( |
| 2507 | 2507 | 'type' => 'user', |
@@ -2566,7 +2566,7 @@ discard block |
||
| 2566 | 2566 | '#weight' => 0.0, |
| 2567 | 2567 | '#info' => array( |
| 2568 | 2568 | 'label' => 'PHP code: node content unchanged', |
| 2569 | - 'label callback' => FALSE, |
|
| 2569 | + 'label callback' => false, |
|
| 2570 | 2570 | 'module' => 'PHP', |
| 2571 | 2571 | 'eval input' => array( |
| 2572 | 2572 | '0' => 'code', |
@@ -2593,7 +2593,7 @@ discard block |
||
| 2593 | 2593 | '#weight' => 0.0, |
| 2594 | 2594 | '#info' => array( |
| 2595 | 2595 | 'label' => 'PHP code: node status changed to hidden', |
| 2596 | - 'label callback' => FALSE, |
|
| 2596 | + 'label callback' => false, |
|
| 2597 | 2597 | 'module' => 'PHP', |
| 2598 | 2598 | 'eval input' => array( |
| 2599 | 2599 | '0' => 'code', |
@@ -2688,7 +2688,7 @@ discard block |
||
| 2688 | 2688 | '#name' => 'rules_condition_user_hasrole', |
| 2689 | 2689 | '#info' => array( |
| 2690 | 2690 | 'label' => 'User has role(s): administrator or moderator', |
| 2691 | - 'label callback' => FALSE, |
|
| 2691 | + 'label callback' => false, |
|
| 2692 | 2692 | 'arguments' => array( |
| 2693 | 2693 | 'user' => array( |
| 2694 | 2694 | 'type' => 'user', |
@@ -2752,7 +2752,7 @@ discard block |
||
| 2752 | 2752 | '#weight' => 0.0, |
| 2753 | 2753 | '#info' => array( |
| 2754 | 2754 | 'label' => 'PHP code: node moved to new forum parent', |
| 2755 | - 'label callback' => FALSE, |
|
| 2755 | + 'label callback' => false, |
|
| 2756 | 2756 | 'module' => 'PHP', |
| 2757 | 2757 | 'eval input' => array( |
| 2758 | 2758 | '0' => 'code', |
@@ -2846,7 +2846,7 @@ discard block |
||
| 2846 | 2846 | '#name' => 'rules_condition_user_hasrole', |
| 2847 | 2847 | '#info' => array( |
| 2848 | 2848 | 'label' => 'User has role(s): administrator or moderator', |
| 2849 | - 'label callback' => FALSE, |
|
| 2849 | + 'label callback' => false, |
|
| 2850 | 2850 | 'arguments' => array( |
| 2851 | 2851 | 'user' => array( |
| 2852 | 2852 | 'type' => 'user', |
@@ -2926,7 +2926,7 @@ discard block |
||
| 2926 | 2926 | '#name' => 'rules_condition_custom_php', |
| 2927 | 2927 | '#info' => array( |
| 2928 | 2928 | 'label' => 'PHP code: node content is unchanged', |
| 2929 | - 'label callback' => FALSE, |
|
| 2929 | + 'label callback' => false, |
|
| 2930 | 2930 | 'module' => 'PHP', |
| 2931 | 2931 | 'eval input' => array( |
| 2932 | 2932 | '0' => 'code', |
@@ -2953,7 +2953,7 @@ discard block |
||
| 2953 | 2953 | '#name' => 'rules_condition_custom_php', |
| 2954 | 2954 | '#info' => array( |
| 2955 | 2955 | 'label' => 'PHP code: node status changed to unhidden', |
| 2956 | - 'label callback' => FALSE, |
|
| 2956 | + 'label callback' => false, |
|
| 2957 | 2957 | 'module' => 'PHP', |
| 2958 | 2958 | 'eval input' => array( |
| 2959 | 2959 | '0' => 'code', |
@@ -3032,7 +3032,7 @@ discard block |
||
| 3032 | 3032 | '#name' => 'rules_condition_user_hasrole', |
| 3033 | 3033 | '#info' => array( |
| 3034 | 3034 | 'label' => 'User has role(s): administrator or moderator', |
| 3035 | - 'label callback' => FALSE, |
|
| 3035 | + 'label callback' => false, |
|
| 3036 | 3036 | 'arguments' => array( |
| 3037 | 3037 | 'user' => array( |
| 3038 | 3038 | 'type' => 'user', |
@@ -3097,7 +3097,7 @@ discard block |
||
| 3097 | 3097 | '#weight' => 0.0, |
| 3098 | 3098 | '#info' => array( |
| 3099 | 3099 | 'label' => 'PHP code: node content unchanged', |
| 3100 | - 'label callback' => FALSE, |
|
| 3100 | + 'label callback' => false, |
|
| 3101 | 3101 | 'module' => 'PHP', |
| 3102 | 3102 | 'eval input' => array( |
| 3103 | 3103 | '0' => 'code', |
@@ -3124,7 +3124,7 @@ discard block |
||
| 3124 | 3124 | '#weight' => 0.0, |
| 3125 | 3125 | '#info' => array( |
| 3126 | 3126 | 'label' => 'PHP code: node locked', |
| 3127 | - 'label callback' => FALSE, |
|
| 3127 | + 'label callback' => false, |
|
| 3128 | 3128 | 'module' => 'PHP', |
| 3129 | 3129 | 'eval input' => array( |
| 3130 | 3130 | '0' => 'code', |
@@ -3218,7 +3218,7 @@ discard block |
||
| 3218 | 3218 | '#name' => 'rules_condition_user_hasrole', |
| 3219 | 3219 | '#info' => array( |
| 3220 | 3220 | 'label' => 'User has role(s): administrator or moderator', |
| 3221 | - 'label callback' => FALSE, |
|
| 3221 | + 'label callback' => false, |
|
| 3222 | 3222 | 'arguments' => array( |
| 3223 | 3223 | 'user' => array( |
| 3224 | 3224 | 'type' => 'user', |
@@ -3283,7 +3283,7 @@ discard block |
||
| 3283 | 3283 | '#weight' => 0.0, |
| 3284 | 3284 | '#info' => array( |
| 3285 | 3285 | 'label' => 'PHP code: node content unchanged', |
| 3286 | - 'label callback' => FALSE, |
|
| 3286 | + 'label callback' => false, |
|
| 3287 | 3287 | 'module' => 'PHP', |
| 3288 | 3288 | 'eval input' => array( |
| 3289 | 3289 | '0' => 'code', |
@@ -3310,7 +3310,7 @@ discard block |
||
| 3310 | 3310 | '#weight' => 0.0, |
| 3311 | 3311 | '#info' => array( |
| 3312 | 3312 | 'label' => 'PHP code: node made sticky', |
| 3313 | - 'label callback' => FALSE, |
|
| 3313 | + 'label callback' => false, |
|
| 3314 | 3314 | 'module' => 'PHP', |
| 3315 | 3315 | 'eval input' => array( |
| 3316 | 3316 | '0' => 'code', |
@@ -3404,7 +3404,7 @@ discard block |
||
| 3404 | 3404 | '#name' => 'rules_condition_user_hasrole', |
| 3405 | 3405 | '#info' => array( |
| 3406 | 3406 | 'label' => 'User has role(s): administrator or moderator', |
| 3407 | - 'label callback' => FALSE, |
|
| 3407 | + 'label callback' => false, |
|
| 3408 | 3408 | 'arguments' => array( |
| 3409 | 3409 | 'user' => array( |
| 3410 | 3410 | 'type' => 'user', |
@@ -3469,7 +3469,7 @@ discard block |
||
| 3469 | 3469 | '#weight' => 0.0, |
| 3470 | 3470 | '#info' => array( |
| 3471 | 3471 | 'label' => 'PHP code: node content unchanged', |
| 3472 | - 'label callback' => FALSE, |
|
| 3472 | + 'label callback' => false, |
|
| 3473 | 3473 | 'module' => 'PHP', |
| 3474 | 3474 | 'eval input' => array( |
| 3475 | 3475 | '0' => 'code', |
@@ -3496,7 +3496,7 @@ discard block |
||
| 3496 | 3496 | '#weight' => 0.0, |
| 3497 | 3497 | '#info' => array( |
| 3498 | 3498 | 'label' => 'PHP code: node made sticky', |
| 3499 | - 'label callback' => FALSE, |
|
| 3499 | + 'label callback' => false, |
|
| 3500 | 3500 | 'module' => 'PHP', |
| 3501 | 3501 | 'eval input' => array( |
| 3502 | 3502 | '0' => 'code', |
@@ -3591,7 +3591,7 @@ discard block |
||
| 3591 | 3591 | '#name' => 'rules_condition_user_hasrole', |
| 3592 | 3592 | '#info' => array( |
| 3593 | 3593 | 'label' => 'User has role(s): administrator or moderator', |
| 3594 | - 'label callback' => FALSE, |
|
| 3594 | + 'label callback' => false, |
|
| 3595 | 3595 | 'arguments' => array( |
| 3596 | 3596 | 'user' => array( |
| 3597 | 3597 | 'type' => 'user', |
@@ -3655,7 +3655,7 @@ discard block |
||
| 3655 | 3655 | '#weight' => 0.0, |
| 3656 | 3656 | '#info' => array( |
| 3657 | 3657 | 'label' => 'PHP code: title changed', |
| 3658 | - 'label callback' => FALSE, |
|
| 3658 | + 'label callback' => false, |
|
| 3659 | 3659 | 'module' => 'PHP', |
| 3660 | 3660 | 'eval input' => array( |
| 3661 | 3661 | '0' => 'code', |
@@ -3749,7 +3749,7 @@ discard block |
||
| 3749 | 3749 | '#name' => 'rules_condition_user_hasrole', |
| 3750 | 3750 | '#info' => array( |
| 3751 | 3751 | 'label' => 'User has role(s): administrator or moderator', |
| 3752 | - 'label callback' => FALSE, |
|
| 3752 | + 'label callback' => false, |
|
| 3753 | 3753 | 'arguments' => array( |
| 3754 | 3754 | 'user' => array( |
| 3755 | 3755 | 'type' => 'user', |
@@ -3814,7 +3814,7 @@ discard block |
||
| 3814 | 3814 | '#weight' => 0.0, |
| 3815 | 3815 | '#info' => array( |
| 3816 | 3816 | 'label' => 'PHP code: node content unchanged', |
| 3817 | - 'label callback' => FALSE, |
|
| 3817 | + 'label callback' => false, |
|
| 3818 | 3818 | 'module' => 'PHP', |
| 3819 | 3819 | 'eval input' => array( |
| 3820 | 3820 | '0' => 'code', |
@@ -3841,7 +3841,7 @@ discard block |
||
| 3841 | 3841 | '#weight' => 0.0, |
| 3842 | 3842 | '#info' => array( |
| 3843 | 3843 | 'label' => 'PHP code: node unlocked', |
| 3844 | - 'label callback' => FALSE, |
|
| 3844 | + 'label callback' => false, |
|
| 3845 | 3845 | 'module' => 'PHP', |
| 3846 | 3846 | 'eval input' => array( |
| 3847 | 3847 | '0' => 'code', |
@@ -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( |