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