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