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