@@ -4,93 +4,93 @@ |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function team_forums_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 = 'comment_anonymous_team_forum'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['comment_anonymous_team_forum'] = $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 = 'comment_anonymous_team_forum'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['comment_anonymous_team_forum'] = $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 = 'comment_controls_team_forum'; |
|
| 20 | - $strongarm->value = '1'; |
|
| 21 | - $export['comment_controls_team_forum'] = $strongarm; |
|
| 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 = 'comment_controls_team_forum'; |
|
| 20 | + $strongarm->value = '1'; |
|
| 21 | + $export['comment_controls_team_forum'] = $strongarm; |
|
| 22 | 22 | |
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'comment_default_mode_team_forum'; |
|
| 27 | - $strongarm->value = '2'; |
|
| 28 | - $export['comment_default_mode_team_forum'] = $strongarm; |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'comment_default_mode_team_forum'; |
|
| 27 | + $strongarm->value = '2'; |
|
| 28 | + $export['comment_default_mode_team_forum'] = $strongarm; |
|
| 29 | 29 | |
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'comment_default_order_team_forum'; |
|
| 34 | - $strongarm->value = '2'; |
|
| 35 | - $export['comment_default_order_team_forum'] = $strongarm; |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'comment_default_order_team_forum'; |
|
| 34 | + $strongarm->value = '2'; |
|
| 35 | + $export['comment_default_order_team_forum'] = $strongarm; |
|
| 36 | 36 | |
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'comment_default_per_page_team_forum'; |
|
| 41 | - $strongarm->value = '50'; |
|
| 42 | - $export['comment_default_per_page_team_forum'] = $strongarm; |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'comment_default_per_page_team_forum'; |
|
| 41 | + $strongarm->value = '50'; |
|
| 42 | + $export['comment_default_per_page_team_forum'] = $strongarm; |
|
| 43 | 43 | |
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'comment_form_location_team_forum'; |
|
| 48 | - $strongarm->value = '0'; |
|
| 49 | - $export['comment_form_location_team_forum'] = $strongarm; |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'comment_form_location_team_forum'; |
|
| 48 | + $strongarm->value = '0'; |
|
| 49 | + $export['comment_form_location_team_forum'] = $strongarm; |
|
| 50 | 50 | |
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'comment_preview_team_forum'; |
|
| 55 | - $strongarm->value = '0'; |
|
| 56 | - $export['comment_preview_team_forum'] = $strongarm; |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'comment_preview_team_forum'; |
|
| 55 | + $strongarm->value = '0'; |
|
| 56 | + $export['comment_preview_team_forum'] = $strongarm; |
|
| 57 | 57 | |
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'comment_subject_field_team_forum'; |
|
| 62 | - $strongarm->value = '1'; |
|
| 63 | - $export['comment_subject_field_team_forum'] = $strongarm; |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'comment_subject_field_team_forum'; |
|
| 62 | + $strongarm->value = '1'; |
|
| 63 | + $export['comment_subject_field_team_forum'] = $strongarm; |
|
| 64 | 64 | |
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'comment_team_forum'; |
|
| 69 | - $strongarm->value = '2'; |
|
| 70 | - $export['comment_team_forum'] = $strongarm; |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'comment_team_forum'; |
|
| 69 | + $strongarm->value = '2'; |
|
| 70 | + $export['comment_team_forum'] = $strongarm; |
|
| 71 | 71 | |
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'language_content_type_team_forum'; |
|
| 76 | - $strongarm->value = '0'; |
|
| 77 | - $export['language_content_type_team_forum'] = $strongarm; |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'language_content_type_team_forum'; |
|
| 76 | + $strongarm->value = '0'; |
|
| 77 | + $export['language_content_type_team_forum'] = $strongarm; |
|
| 78 | 78 | |
| 79 | - $strongarm = new stdClass; |
|
| 80 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 81 | - $strongarm->api_version = 1; |
|
| 82 | - $strongarm->name = 'node_options_team_forum'; |
|
| 83 | - $strongarm->value = array( |
|
| 79 | + $strongarm = new stdClass; |
|
| 80 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 81 | + $strongarm->api_version = 1; |
|
| 82 | + $strongarm->name = 'node_options_team_forum'; |
|
| 83 | + $strongarm->value = array( |
|
| 84 | 84 | 0 => 'status', |
| 85 | - ); |
|
| 86 | - $export['node_options_team_forum'] = $strongarm; |
|
| 85 | + ); |
|
| 86 | + $export['node_options_team_forum'] = $strongarm; |
|
| 87 | 87 | |
| 88 | - $strongarm = new stdClass; |
|
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | - $strongarm->api_version = 1; |
|
| 91 | - $strongarm->name = 'upload_team_forum'; |
|
| 92 | - $strongarm->value = '0'; |
|
| 93 | - $export['upload_team_forum'] = $strongarm; |
|
| 88 | + $strongarm = new stdClass; |
|
| 89 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | + $strongarm->api_version = 1; |
|
| 91 | + $strongarm->name = 'upload_team_forum'; |
|
| 92 | + $strongarm->value = '0'; |
|
| 93 | + $export['upload_team_forum'] = $strongarm; |
|
| 94 | 94 | |
| 95 | - return $export; |
|
| 95 | + return $export; |
|
| 96 | 96 | } |
@@ -7,77 +7,77 @@ discard block |
||
| 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 = 'comment_anonymous_team_forum'; |
| 13 | 13 | $strongarm->value = 0; |
| 14 | 14 | $export['comment_anonymous_team_forum'] = $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 = 'comment_controls_team_forum'; |
| 20 | 20 | $strongarm->value = '1'; |
| 21 | 21 | $export['comment_controls_team_forum'] = $strongarm; |
| 22 | 22 | |
| 23 | 23 | $strongarm = new stdClass; |
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 24 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | 25 | $strongarm->api_version = 1; |
| 26 | 26 | $strongarm->name = 'comment_default_mode_team_forum'; |
| 27 | 27 | $strongarm->value = '2'; |
| 28 | 28 | $export['comment_default_mode_team_forum'] = $strongarm; |
| 29 | 29 | |
| 30 | 30 | $strongarm = new stdClass; |
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 31 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | 32 | $strongarm->api_version = 1; |
| 33 | 33 | $strongarm->name = 'comment_default_order_team_forum'; |
| 34 | 34 | $strongarm->value = '2'; |
| 35 | 35 | $export['comment_default_order_team_forum'] = $strongarm; |
| 36 | 36 | |
| 37 | 37 | $strongarm = new stdClass; |
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 38 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | 39 | $strongarm->api_version = 1; |
| 40 | 40 | $strongarm->name = 'comment_default_per_page_team_forum'; |
| 41 | 41 | $strongarm->value = '50'; |
| 42 | 42 | $export['comment_default_per_page_team_forum'] = $strongarm; |
| 43 | 43 | |
| 44 | 44 | $strongarm = new stdClass; |
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 45 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | 46 | $strongarm->api_version = 1; |
| 47 | 47 | $strongarm->name = 'comment_form_location_team_forum'; |
| 48 | 48 | $strongarm->value = '0'; |
| 49 | 49 | $export['comment_form_location_team_forum'] = $strongarm; |
| 50 | 50 | |
| 51 | 51 | $strongarm = new stdClass; |
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 52 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | 53 | $strongarm->api_version = 1; |
| 54 | 54 | $strongarm->name = 'comment_preview_team_forum'; |
| 55 | 55 | $strongarm->value = '0'; |
| 56 | 56 | $export['comment_preview_team_forum'] = $strongarm; |
| 57 | 57 | |
| 58 | 58 | $strongarm = new stdClass; |
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 59 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | 60 | $strongarm->api_version = 1; |
| 61 | 61 | $strongarm->name = 'comment_subject_field_team_forum'; |
| 62 | 62 | $strongarm->value = '1'; |
| 63 | 63 | $export['comment_subject_field_team_forum'] = $strongarm; |
| 64 | 64 | |
| 65 | 65 | $strongarm = new stdClass; |
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 66 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | 67 | $strongarm->api_version = 1; |
| 68 | 68 | $strongarm->name = 'comment_team_forum'; |
| 69 | 69 | $strongarm->value = '2'; |
| 70 | 70 | $export['comment_team_forum'] = $strongarm; |
| 71 | 71 | |
| 72 | 72 | $strongarm = new stdClass; |
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 73 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | 74 | $strongarm->api_version = 1; |
| 75 | 75 | $strongarm->name = 'language_content_type_team_forum'; |
| 76 | 76 | $strongarm->value = '0'; |
| 77 | 77 | $export['language_content_type_team_forum'] = $strongarm; |
| 78 | 78 | |
| 79 | 79 | $strongarm = new stdClass; |
| 80 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 80 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 81 | 81 | $strongarm->api_version = 1; |
| 82 | 82 | $strongarm->name = 'node_options_team_forum'; |
| 83 | 83 | $strongarm->value = array( |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | $export['node_options_team_forum'] = $strongarm; |
| 87 | 87 | |
| 88 | 88 | $strongarm = new stdClass; |
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 89 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | 90 | $strongarm->api_version = 1; |
| 91 | 91 | $strongarm->name = 'upload_team_forum'; |
| 92 | 92 | $strongarm->value = '0'; |
@@ -4,76 +4,76 @@ discard block |
||
| 4 | 4 | * Implementation of hook_strongarm(). |
| 5 | 5 | */ |
| 6 | 6 | function user_profiles_strongarm() { |
| 7 | - $export = array(); |
|
| 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 = 'comment_anonymous_profile'; |
|
| 13 | - $strongarm->value = 0; |
|
| 14 | - $export['comment_anonymous_profile'] = $strongarm; |
|
| 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 = 'comment_controls_profile'; |
|
| 20 | - $strongarm->value = '3'; |
|
| 21 | - $export['comment_controls_profile'] = $strongarm; |
|
| 22 | - |
|
| 23 | - $strongarm = new stdClass; |
|
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | - $strongarm->api_version = 1; |
|
| 26 | - $strongarm->name = 'comment_default_mode_profile'; |
|
| 27 | - $strongarm->value = '4'; |
|
| 28 | - $export['comment_default_mode_profile'] = $strongarm; |
|
| 29 | - |
|
| 30 | - $strongarm = new stdClass; |
|
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | - $strongarm->api_version = 1; |
|
| 33 | - $strongarm->name = 'comment_default_order_profile'; |
|
| 34 | - $strongarm->value = '1'; |
|
| 35 | - $export['comment_default_order_profile'] = $strongarm; |
|
| 36 | - |
|
| 37 | - $strongarm = new stdClass; |
|
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | - $strongarm->api_version = 1; |
|
| 40 | - $strongarm->name = 'comment_default_per_page_profile'; |
|
| 41 | - $strongarm->value = '50'; |
|
| 42 | - $export['comment_default_per_page_profile'] = $strongarm; |
|
| 43 | - |
|
| 44 | - $strongarm = new stdClass; |
|
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | - $strongarm->api_version = 1; |
|
| 47 | - $strongarm->name = 'comment_form_location_profile'; |
|
| 48 | - $strongarm->value = '0'; |
|
| 49 | - $export['comment_form_location_profile'] = $strongarm; |
|
| 50 | - |
|
| 51 | - $strongarm = new stdClass; |
|
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | - $strongarm->api_version = 1; |
|
| 54 | - $strongarm->name = 'comment_preview_profile'; |
|
| 55 | - $strongarm->value = '1'; |
|
| 56 | - $export['comment_preview_profile'] = $strongarm; |
|
| 57 | - |
|
| 58 | - $strongarm = new stdClass; |
|
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | - $strongarm->api_version = 1; |
|
| 61 | - $strongarm->name = 'comment_profile'; |
|
| 62 | - $strongarm->value = '2'; |
|
| 63 | - $export['comment_profile'] = $strongarm; |
|
| 64 | - |
|
| 65 | - $strongarm = new stdClass; |
|
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | - $strongarm->api_version = 1; |
|
| 68 | - $strongarm->name = 'comment_subject_field_profile'; |
|
| 69 | - $strongarm->value = '1'; |
|
| 70 | - $export['comment_subject_field_profile'] = $strongarm; |
|
| 71 | - |
|
| 72 | - $strongarm = new stdClass; |
|
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | - $strongarm->api_version = 1; |
|
| 75 | - $strongarm->name = 'content_extra_weights_profile'; |
|
| 76 | - $strongarm->value = array( |
|
| 7 | + $export = array(); |
|
| 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 = 'comment_anonymous_profile'; |
|
| 13 | + $strongarm->value = 0; |
|
| 14 | + $export['comment_anonymous_profile'] = $strongarm; |
|
| 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 = 'comment_controls_profile'; |
|
| 20 | + $strongarm->value = '3'; |
|
| 21 | + $export['comment_controls_profile'] = $strongarm; |
|
| 22 | + |
|
| 23 | + $strongarm = new stdClass; |
|
| 24 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | + $strongarm->api_version = 1; |
|
| 26 | + $strongarm->name = 'comment_default_mode_profile'; |
|
| 27 | + $strongarm->value = '4'; |
|
| 28 | + $export['comment_default_mode_profile'] = $strongarm; |
|
| 29 | + |
|
| 30 | + $strongarm = new stdClass; |
|
| 31 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | + $strongarm->api_version = 1; |
|
| 33 | + $strongarm->name = 'comment_default_order_profile'; |
|
| 34 | + $strongarm->value = '1'; |
|
| 35 | + $export['comment_default_order_profile'] = $strongarm; |
|
| 36 | + |
|
| 37 | + $strongarm = new stdClass; |
|
| 38 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | + $strongarm->api_version = 1; |
|
| 40 | + $strongarm->name = 'comment_default_per_page_profile'; |
|
| 41 | + $strongarm->value = '50'; |
|
| 42 | + $export['comment_default_per_page_profile'] = $strongarm; |
|
| 43 | + |
|
| 44 | + $strongarm = new stdClass; |
|
| 45 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | + $strongarm->api_version = 1; |
|
| 47 | + $strongarm->name = 'comment_form_location_profile'; |
|
| 48 | + $strongarm->value = '0'; |
|
| 49 | + $export['comment_form_location_profile'] = $strongarm; |
|
| 50 | + |
|
| 51 | + $strongarm = new stdClass; |
|
| 52 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | + $strongarm->api_version = 1; |
|
| 54 | + $strongarm->name = 'comment_preview_profile'; |
|
| 55 | + $strongarm->value = '1'; |
|
| 56 | + $export['comment_preview_profile'] = $strongarm; |
|
| 57 | + |
|
| 58 | + $strongarm = new stdClass; |
|
| 59 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | + $strongarm->api_version = 1; |
|
| 61 | + $strongarm->name = 'comment_profile'; |
|
| 62 | + $strongarm->value = '2'; |
|
| 63 | + $export['comment_profile'] = $strongarm; |
|
| 64 | + |
|
| 65 | + $strongarm = new stdClass; |
|
| 66 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | + $strongarm->api_version = 1; |
|
| 68 | + $strongarm->name = 'comment_subject_field_profile'; |
|
| 69 | + $strongarm->value = '1'; |
|
| 70 | + $export['comment_subject_field_profile'] = $strongarm; |
|
| 71 | + |
|
| 72 | + $strongarm = new stdClass; |
|
| 73 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | + $strongarm->api_version = 1; |
|
| 75 | + $strongarm->name = 'content_extra_weights_profile'; |
|
| 76 | + $strongarm->value = array( |
|
| 77 | 77 | 'title' => '-5', |
| 78 | 78 | 'body_field' => '-3', |
| 79 | 79 | 'revision_information' => '-1', |
@@ -82,46 +82,46 @@ discard block |
||
| 82 | 82 | 'comment_settings' => '1', |
| 83 | 83 | 'menu' => '-4', |
| 84 | 84 | 'path' => '2', |
| 85 | - ); |
|
| 86 | - $export['content_extra_weights_profile'] = $strongarm; |
|
| 87 | - |
|
| 88 | - $strongarm = new stdClass; |
|
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | - $strongarm->api_version = 1; |
|
| 91 | - $strongarm->name = 'content_profile_use_profile'; |
|
| 92 | - $strongarm->value = 1; |
|
| 93 | - $export['content_profile_use_profile'] = $strongarm; |
|
| 94 | - |
|
| 95 | - $strongarm = new stdClass; |
|
| 96 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 97 | - $strongarm->api_version = 1; |
|
| 98 | - $strongarm->name = 'language_content_type_profile'; |
|
| 99 | - $strongarm->value = '0'; |
|
| 100 | - $export['language_content_type_profile'] = $strongarm; |
|
| 101 | - |
|
| 102 | - $strongarm = new stdClass; |
|
| 103 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 104 | - $strongarm->api_version = 1; |
|
| 105 | - $strongarm->name = 'node_options_profile'; |
|
| 106 | - $strongarm->value = array( |
|
| 85 | + ); |
|
| 86 | + $export['content_extra_weights_profile'] = $strongarm; |
|
| 87 | + |
|
| 88 | + $strongarm = new stdClass; |
|
| 89 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | + $strongarm->api_version = 1; |
|
| 91 | + $strongarm->name = 'content_profile_use_profile'; |
|
| 92 | + $strongarm->value = 1; |
|
| 93 | + $export['content_profile_use_profile'] = $strongarm; |
|
| 94 | + |
|
| 95 | + $strongarm = new stdClass; |
|
| 96 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 97 | + $strongarm->api_version = 1; |
|
| 98 | + $strongarm->name = 'language_content_type_profile'; |
|
| 99 | + $strongarm->value = '0'; |
|
| 100 | + $export['language_content_type_profile'] = $strongarm; |
|
| 101 | + |
|
| 102 | + $strongarm = new stdClass; |
|
| 103 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 104 | + $strongarm->api_version = 1; |
|
| 105 | + $strongarm->name = 'node_options_profile'; |
|
| 106 | + $strongarm->value = array( |
|
| 107 | 107 | 0 => 'status', |
| 108 | 108 | 1 => 'promote', |
| 109 | - ); |
|
| 110 | - $export['node_options_profile'] = $strongarm; |
|
| 111 | - |
|
| 112 | - $strongarm = new stdClass; |
|
| 113 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 114 | - $strongarm->api_version = 1; |
|
| 115 | - $strongarm->name = 'show_preview_changes_profile'; |
|
| 116 | - $strongarm->value = 0; |
|
| 117 | - $export['show_preview_changes_profile'] = $strongarm; |
|
| 118 | - |
|
| 119 | - $strongarm = new stdClass; |
|
| 120 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 121 | - $strongarm->api_version = 1; |
|
| 122 | - $strongarm->name = 'upload_profile'; |
|
| 123 | - $strongarm->value = '0'; |
|
| 124 | - $export['upload_profile'] = $strongarm; |
|
| 125 | - |
|
| 126 | - return $export; |
|
| 109 | + ); |
|
| 110 | + $export['node_options_profile'] = $strongarm; |
|
| 111 | + |
|
| 112 | + $strongarm = new stdClass; |
|
| 113 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 114 | + $strongarm->api_version = 1; |
|
| 115 | + $strongarm->name = 'show_preview_changes_profile'; |
|
| 116 | + $strongarm->value = 0; |
|
| 117 | + $export['show_preview_changes_profile'] = $strongarm; |
|
| 118 | + |
|
| 119 | + $strongarm = new stdClass; |
|
| 120 | + $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 121 | + $strongarm->api_version = 1; |
|
| 122 | + $strongarm->name = 'upload_profile'; |
|
| 123 | + $strongarm->value = '0'; |
|
| 124 | + $export['upload_profile'] = $strongarm; |
|
| 125 | + |
|
| 126 | + return $export; |
|
| 127 | 127 | } |
@@ -7,70 +7,70 @@ discard block |
||
| 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 = 'comment_anonymous_profile'; |
| 13 | 13 | $strongarm->value = 0; |
| 14 | 14 | $export['comment_anonymous_profile'] = $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 = 'comment_controls_profile'; |
| 20 | 20 | $strongarm->value = '3'; |
| 21 | 21 | $export['comment_controls_profile'] = $strongarm; |
| 22 | 22 | |
| 23 | 23 | $strongarm = new stdClass; |
| 24 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 24 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 25 | 25 | $strongarm->api_version = 1; |
| 26 | 26 | $strongarm->name = 'comment_default_mode_profile'; |
| 27 | 27 | $strongarm->value = '4'; |
| 28 | 28 | $export['comment_default_mode_profile'] = $strongarm; |
| 29 | 29 | |
| 30 | 30 | $strongarm = new stdClass; |
| 31 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 31 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 32 | 32 | $strongarm->api_version = 1; |
| 33 | 33 | $strongarm->name = 'comment_default_order_profile'; |
| 34 | 34 | $strongarm->value = '1'; |
| 35 | 35 | $export['comment_default_order_profile'] = $strongarm; |
| 36 | 36 | |
| 37 | 37 | $strongarm = new stdClass; |
| 38 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 38 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 39 | 39 | $strongarm->api_version = 1; |
| 40 | 40 | $strongarm->name = 'comment_default_per_page_profile'; |
| 41 | 41 | $strongarm->value = '50'; |
| 42 | 42 | $export['comment_default_per_page_profile'] = $strongarm; |
| 43 | 43 | |
| 44 | 44 | $strongarm = new stdClass; |
| 45 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 45 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 46 | 46 | $strongarm->api_version = 1; |
| 47 | 47 | $strongarm->name = 'comment_form_location_profile'; |
| 48 | 48 | $strongarm->value = '0'; |
| 49 | 49 | $export['comment_form_location_profile'] = $strongarm; |
| 50 | 50 | |
| 51 | 51 | $strongarm = new stdClass; |
| 52 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 52 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 53 | 53 | $strongarm->api_version = 1; |
| 54 | 54 | $strongarm->name = 'comment_preview_profile'; |
| 55 | 55 | $strongarm->value = '1'; |
| 56 | 56 | $export['comment_preview_profile'] = $strongarm; |
| 57 | 57 | |
| 58 | 58 | $strongarm = new stdClass; |
| 59 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 59 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 60 | 60 | $strongarm->api_version = 1; |
| 61 | 61 | $strongarm->name = 'comment_profile'; |
| 62 | 62 | $strongarm->value = '2'; |
| 63 | 63 | $export['comment_profile'] = $strongarm; |
| 64 | 64 | |
| 65 | 65 | $strongarm = new stdClass; |
| 66 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 66 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 67 | 67 | $strongarm->api_version = 1; |
| 68 | 68 | $strongarm->name = 'comment_subject_field_profile'; |
| 69 | 69 | $strongarm->value = '1'; |
| 70 | 70 | $export['comment_subject_field_profile'] = $strongarm; |
| 71 | 71 | |
| 72 | 72 | $strongarm = new stdClass; |
| 73 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 73 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 74 | 74 | $strongarm->api_version = 1; |
| 75 | 75 | $strongarm->name = 'content_extra_weights_profile'; |
| 76 | 76 | $strongarm->value = array( |
@@ -86,21 +86,21 @@ discard block |
||
| 86 | 86 | $export['content_extra_weights_profile'] = $strongarm; |
| 87 | 87 | |
| 88 | 88 | $strongarm = new stdClass; |
| 89 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 89 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 90 | 90 | $strongarm->api_version = 1; |
| 91 | 91 | $strongarm->name = 'content_profile_use_profile'; |
| 92 | 92 | $strongarm->value = 1; |
| 93 | 93 | $export['content_profile_use_profile'] = $strongarm; |
| 94 | 94 | |
| 95 | 95 | $strongarm = new stdClass; |
| 96 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 96 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 97 | 97 | $strongarm->api_version = 1; |
| 98 | 98 | $strongarm->name = 'language_content_type_profile'; |
| 99 | 99 | $strongarm->value = '0'; |
| 100 | 100 | $export['language_content_type_profile'] = $strongarm; |
| 101 | 101 | |
| 102 | 102 | $strongarm = new stdClass; |
| 103 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 103 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 104 | 104 | $strongarm->api_version = 1; |
| 105 | 105 | $strongarm->name = 'node_options_profile'; |
| 106 | 106 | $strongarm->value = array( |
@@ -110,14 +110,14 @@ discard block |
||
| 110 | 110 | $export['node_options_profile'] = $strongarm; |
| 111 | 111 | |
| 112 | 112 | $strongarm = new stdClass; |
| 113 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 113 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 114 | 114 | $strongarm->api_version = 1; |
| 115 | 115 | $strongarm->name = 'show_preview_changes_profile'; |
| 116 | 116 | $strongarm->value = 0; |
| 117 | 117 | $export['show_preview_changes_profile'] = $strongarm; |
| 118 | 118 | |
| 119 | 119 | $strongarm = new stdClass; |
| 120 | - $strongarm->disabled = FALSE; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 120 | + $strongarm->disabled = false; /* Edit this to true to make a default strongarm disabled initially */ |
|
| 121 | 121 | $strongarm->api_version = 1; |
| 122 | 122 | $strongarm->name = 'upload_profile'; |
| 123 | 123 | $strongarm->value = '0'; |
@@ -15,15 +15,15 @@ discard block |
||
| 15 | 15 | * the admin interface. |
| 16 | 16 | */ |
| 17 | 17 | function boinctranslate_filter_settings_form($format = -1) { |
| 18 | - // Form |
|
| 19 | - $form = array(); |
|
| 20 | - $form['boinctranslate_filter'] = array( |
|
| 18 | + // Form |
|
| 19 | + $form = array(); |
|
| 20 | + $form['boinctranslate_filter'] = array( |
|
| 21 | 21 | '#type' => 'fieldset', |
| 22 | 22 | '#title' => bts('BOINC translate filter', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 23 | 23 | '#collapsible' => TRUE, |
| 24 | 24 | '#collapsed' => FALSE, |
| 25 | - ); |
|
| 26 | - $form['boinctranslate_filter']['boinctranslate_filter_help'] = array( |
|
| 25 | + ); |
|
| 26 | + $form['boinctranslate_filter']['boinctranslate_filter_help'] = array( |
|
| 27 | 27 | '#type' => 'item', |
| 28 | 28 | '#title' => t('BOINC translate filter'), |
| 29 | 29 | '#value' => t('When a node is created or edited, the content is split into chunks |
@@ -48,12 +48,12 @@ discard block |
||
| 48 | 48 | only one chunk changes, then only that one translation needs to be |
| 49 | 49 | updated.'), |
| 50 | 50 | ); |
| 51 | - $form['boinctranslate_filter']["boinctranslate_filter_debug_$format"] = array( |
|
| 51 | + $form['boinctranslate_filter']["boinctranslate_filter_debug_$format"] = array( |
|
| 52 | 52 | '#type' => 'select', |
| 53 | 53 | '#title' => bts('Print debugging info', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 54 | 54 | '#default_value' => variable_get("boinctranslate_filter_debug_$format", 0), |
| 55 | 55 | '#options' => array(t('Disabled'), t('Enabled')), |
| 56 | 56 | '#description' => bts('Prints additional debugging information. This option should be disabled on production sites.', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
| 57 | - ); |
|
| 58 | - return $form; |
|
| 57 | + ); |
|
| 58 | + return $form; |
|
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |
@@ -19,9 +19,9 @@ discard block |
||
| 19 | 19 | $form = array(); |
| 20 | 20 | $form['boinctranslate_filter'] = array( |
| 21 | 21 | '#type' => 'fieldset', |
| 22 | - '#title' => bts('BOINC translate filter', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 23 | - '#collapsible' => TRUE, |
|
| 24 | - '#collapsed' => FALSE, |
|
| 22 | + '#title' => bts('BOINC translate filter', array(), null, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 23 | + '#collapsible' => true, |
|
| 24 | + '#collapsed' => false, |
|
| 25 | 25 | ); |
| 26 | 26 | $form['boinctranslate_filter']['boinctranslate_filter_help'] = array( |
| 27 | 27 | '#type' => 'item', |
@@ -50,10 +50,10 @@ discard block |
||
| 50 | 50 | ); |
| 51 | 51 | $form['boinctranslate_filter']["boinctranslate_filter_debug_$format"] = array( |
| 52 | 52 | '#type' => 'select', |
| 53 | - '#title' => bts('Print debugging info', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 53 | + '#title' => bts('Print debugging info', array(), null, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 54 | 54 | '#default_value' => variable_get("boinctranslate_filter_debug_$format", 0), |
| 55 | 55 | '#options' => array(t('Disabled'), t('Enabled')), |
| 56 | - '#description' => bts('Prints additional debugging information. This option should be disabled on production sites.', array(), NULL, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 56 | + '#description' => bts('Prints additional debugging information. This option should be disabled on production sites.', array(), null, 'boinc:adminpage-boinctranslate-inputfilter'), |
|
| 57 | 57 | ); |
| 58 | 58 | return $form; |
| 59 | 59 | } |
| 60 | 60 | \ No newline at end of file |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | 1271379760 => 'moderator', |
| 20 | 20 | 933038561 => 'verified contributor', |
| 21 | 21 | ); |
| 22 | - $input_format->cache = FALSE; |
|
| 22 | + $input_format->cache = false; |
|
| 23 | 23 | $input_format->settings = array( |
| 24 | 24 | // Settings for: boinctranslate module |
| 25 | 25 | 'boinctranslate' => array( |
@@ -118,13 +118,13 @@ discard block |
||
| 118 | 118 | // Settings for: htmlpurifier module |
| 119 | 119 | 'htmlpurifier' => array( |
| 120 | 120 | 'htmlpurifier_clear_cac' => array( |
| 121 | - '#description' => NULL, |
|
| 121 | + '#description' => null, |
|
| 122 | 122 | '#value' => 'Clear cache (Warning: Can result in performance degradation)', |
| 123 | 123 | ), |
| 124 | 124 | // Display help text |
| 125 | 125 | 'htmlpurifier_help' => 1, |
| 126 | 126 | 'htmlpurifier_config' => array( |
| 127 | - '#description' => NULL, |
|
| 127 | + '#description' => null, |
|
| 128 | 128 | '#value' => array( |
| 129 | 129 | 'Attr.EnableID' => '0', |
| 130 | 130 | 'AutoFormat.AutoParagraph' => '1', |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $input_format->roles = array( |
| 178 | 178 | 3519698132 => 'administrator', |
| 179 | 179 | ); |
| 180 | - $input_format->cache = FALSE; |
|
| 180 | + $input_format->cache = false; |
|
| 181 | 181 | $input_format->settings = array( |
| 182 | 182 | ); |
| 183 | 183 | $input_format->filters = array( |
@@ -197,7 +197,7 @@ discard block |
||
| 197 | 197 | $input_format->api_version = 1; |
| 198 | 198 | $input_format->name = 'PHP code'; |
| 199 | 199 | $input_format->roles = array(); |
| 200 | - $input_format->cache = FALSE; |
|
| 200 | + $input_format->cache = false; |
|
| 201 | 201 | $input_format->settings = array( |
| 202 | 202 | ); |
| 203 | 203 | $input_format->filters = array( |
@@ -4,12 +4,12 @@ discard block |
||
| 4 | 4 | * Implementation of hook_input_formats(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_input_formats() { |
| 7 | - $input_formats = array(); |
|
| 7 | + $input_formats = array(); |
|
| 8 | 8 | |
| 9 | - $input_format = new stdClass; |
|
| 10 | - $input_format->api_version = 1; |
|
| 11 | - $input_format->name = 'Rich text'; |
|
| 12 | - $input_format->roles = array( |
|
| 9 | + $input_format = new stdClass; |
|
| 10 | + $input_format->api_version = 1; |
|
| 11 | + $input_format->name = 'Rich text'; |
|
| 12 | + $input_format->roles = array( |
|
| 13 | 13 | 1 => 'anonymous user', |
| 14 | 14 | 2 => 'authenticated user', |
| 15 | 15 | 3519698132 => 'administrator', |
@@ -18,48 +18,48 @@ discard block |
||
| 18 | 18 | 268174006 => 'forum control (system use only)', |
| 19 | 19 | 1271379760 => 'moderator', |
| 20 | 20 | 933038561 => 'verified contributor', |
| 21 | - ); |
|
| 22 | - $input_format->cache = FALSE; |
|
| 23 | - $input_format->settings = array( |
|
| 21 | + ); |
|
| 22 | + $input_format->cache = FALSE; |
|
| 23 | + $input_format->settings = array( |
|
| 24 | 24 | // Settings for: boinctranslate module |
| 25 | 25 | 'boinctranslate' => array( |
| 26 | - // Print debugging info |
|
| 27 | - 'boinctranslate_filter_debug' => '0', |
|
| 26 | + // Print debugging info |
|
| 27 | + 'boinctranslate_filter_debug' => '0', |
|
| 28 | 28 | ), |
| 29 | 29 | // Settings for: pathologic module |
| 30 | 30 | 'pathologic' => array( |
| 31 | - // Also considered local |
|
| 32 | - 'filter_pathologic_local_paths' => '/ |
|
| 31 | + // Also considered local |
|
| 32 | + 'filter_pathologic_local_paths' => '/ |
|
| 33 | 33 | ', |
| 34 | - // Output full absolute URLs |
|
| 35 | - 'filter_pathologic_absolute' => 1, |
|
| 34 | + // Output full absolute URLs |
|
| 35 | + 'filter_pathologic_absolute' => 1, |
|
| 36 | 36 | ), |
| 37 | 37 | // Settings for: bbcode module |
| 38 | 38 | 'bbcode' => array( |
| 39 | - // Convert addresses to links |
|
| 40 | - 'bbcode_make_links' => '1', |
|
| 41 | - // Spam link deterrent |
|
| 42 | - 'bbcode_filter_nofollow' => '0', |
|
| 43 | - // Email address encoding |
|
| 44 | - 'bbcode_encode_mailto' => '0', |
|
| 45 | - // Email address rewrite |
|
| 46 | - 'bbcode_rewrite_email' => '1', |
|
| 47 | - // Smart paragraph and line breaks |
|
| 48 | - 'bbcode_paragraph_breaks' => '2', |
|
| 49 | - // Print debugging info |
|
| 50 | - 'bbcode_debug' => '0', |
|
| 39 | + // Convert addresses to links |
|
| 40 | + 'bbcode_make_links' => '1', |
|
| 41 | + // Spam link deterrent |
|
| 42 | + 'bbcode_filter_nofollow' => '0', |
|
| 43 | + // Email address encoding |
|
| 44 | + 'bbcode_encode_mailto' => '0', |
|
| 45 | + // Email address rewrite |
|
| 46 | + 'bbcode_rewrite_email' => '1', |
|
| 47 | + // Smart paragraph and line breaks |
|
| 48 | + 'bbcode_paragraph_breaks' => '2', |
|
| 49 | + // Print debugging info |
|
| 50 | + 'bbcode_debug' => '0', |
|
| 51 | 51 | ), |
| 52 | 52 | // Settings for: htmlpurifier module |
| 53 | 53 | 'htmlpurifier' => array( |
| 54 | - 'htmlpurifier_clear_cac' => array( |
|
| 55 | - '#description' => NULL, |
|
| 56 | - '#value' => 'Clear cache (Warning: Can result in performance degradation)', |
|
| 54 | + 'htmlpurifier_clear_cac' => array( |
|
| 55 | + '#description' => NULL, |
|
| 56 | + '#value' => 'Clear cache (Warning: Can result in performance degradation)', |
|
| 57 | 57 | ), |
| 58 | - // Display help text |
|
| 59 | - 'htmlpurifier_help' => 1, |
|
| 60 | - 'htmlpurifier_config' => array( |
|
| 61 | - '#description' => NULL, |
|
| 62 | - '#value' => array( |
|
| 58 | + // Display help text |
|
| 59 | + 'htmlpurifier_help' => 1, |
|
| 60 | + 'htmlpurifier_config' => array( |
|
| 61 | + '#description' => NULL, |
|
| 62 | + '#value' => array( |
|
| 63 | 63 | 'Attr.EnableID' => '0', |
| 64 | 64 | 'AutoFormat.AutoParagraph' => '1', |
| 65 | 65 | 'AutoFormat.Linkify' => '1', |
@@ -72,145 +72,145 @@ discard block |
||
| 72 | 72 | 'URI.DisableExternalResources' => '0', |
| 73 | 73 | 'URI.DisableResources' => '0', |
| 74 | 74 | 'Null_URI.Munge' => '1', |
| 75 | - ), |
|
| 75 | + ), |
|
| 76 | 76 | ), |
| 77 | 77 | ), |
| 78 | 78 | // Settings for: tableofcontents module |
| 79 | 79 | 'tableofcontents' => array( |
| 80 | - // Hide the table of contents tags |
|
| 81 | - 'tableofcontents_hide_table' => 0, |
|
| 82 | - // Whether an automatic table of content should be added |
|
| 83 | - 'tableofcontents_automatic' => '0', |
|
| 84 | - // Number of headers before an automatic table of content is added |
|
| 85 | - 'tableofcontents_min_limit' => '5', |
|
| 86 | - // Remove Table of Contents tags from teasers |
|
| 87 | - 'tableofcontents_remove_teaser' => 1, |
|
| 88 | - // Allow users to override the settings within the table of contents tag itself |
|
| 89 | - 'tableofcontents_allow_override' => 1, |
|
| 90 | - // Ensure title is safe (i.e. use check_plain() to avoid XSS attacks.) |
|
| 91 | - 'tableofcontents_safe_title' => 1, |
|
| 92 | - // Table of Contents Title |
|
| 93 | - 'tableofcontents_title' => 'Table of Contents', |
|
| 94 | - // Minimum heading level |
|
| 95 | - 'tableofcontents_minlevel' => '2', |
|
| 96 | - // Maximum heading level |
|
| 97 | - 'tableofcontents_maxlevel' => '3', |
|
| 98 | - // Include link to hide/show table of contents |
|
| 99 | - 'tableofcontents_hide_show' => 1, |
|
| 100 | - // Start with the table of content collapsed |
|
| 101 | - 'tableofcontents_collapsed' => 0, |
|
| 102 | - // Select what is stripped from the header titles |
|
| 103 | - 'tableofcontents_id_stripping' => array( |
|
| 104 | - 'digits' => 0, |
|
| 105 | - 'dashes' => 0, |
|
| 106 | - 'periods' => 0, |
|
| 107 | - 'underscores' => 0, |
|
| 108 | - 'colons' => 0, |
|
| 80 | + // Hide the table of contents tags |
|
| 81 | + 'tableofcontents_hide_table' => 0, |
|
| 82 | + // Whether an automatic table of content should be added |
|
| 83 | + 'tableofcontents_automatic' => '0', |
|
| 84 | + // Number of headers before an automatic table of content is added |
|
| 85 | + 'tableofcontents_min_limit' => '5', |
|
| 86 | + // Remove Table of Contents tags from teasers |
|
| 87 | + 'tableofcontents_remove_teaser' => 1, |
|
| 88 | + // Allow users to override the settings within the table of contents tag itself |
|
| 89 | + 'tableofcontents_allow_override' => 1, |
|
| 90 | + // Ensure title is safe (i.e. use check_plain() to avoid XSS attacks.) |
|
| 91 | + 'tableofcontents_safe_title' => 1, |
|
| 92 | + // Table of Contents Title |
|
| 93 | + 'tableofcontents_title' => 'Table of Contents', |
|
| 94 | + // Minimum heading level |
|
| 95 | + 'tableofcontents_minlevel' => '2', |
|
| 96 | + // Maximum heading level |
|
| 97 | + 'tableofcontents_maxlevel' => '3', |
|
| 98 | + // Include link to hide/show table of contents |
|
| 99 | + 'tableofcontents_hide_show' => 1, |
|
| 100 | + // Start with the table of content collapsed |
|
| 101 | + 'tableofcontents_collapsed' => 0, |
|
| 102 | + // Select what is stripped from the header titles |
|
| 103 | + 'tableofcontents_id_stripping' => array( |
|
| 104 | + 'digits' => 0, |
|
| 105 | + 'dashes' => 0, |
|
| 106 | + 'periods' => 0, |
|
| 107 | + 'underscores' => 0, |
|
| 108 | + 'colons' => 0, |
|
| 109 | 109 | ), |
| 110 | - // Identifier introducer |
|
| 111 | - 'tableofcontents_identifier_introducer' => 'header', |
|
| 112 | - // Identifier and number separator |
|
| 113 | - 'tableofcontents_id_separator' => '-', |
|
| 114 | - // How to generate missing header identifiers |
|
| 115 | - 'tableofcontents_id_generator' => 'title', |
|
| 116 | - // List of tags allowed in table headers |
|
| 117 | - 'tableofcontents_allowed_tags' => '<em> <i> <strong> <b> <u> <del> <ins> <sub> <sup> <cite> <strike> <s> <tt> <span> <font> <abbr> <acronym> <dfn> <q> <bdo> <big> <small>', |
|
| 118 | - // Show attachments in the table of contents |
|
| 119 | - 'tableofcontents_attachments' => 0, |
|
| 120 | - // Add the comments to the table of contents |
|
| 121 | - 'tableofcontents_comments' => 0, |
|
| 122 | - // Select header level at which comments start |
|
| 123 | - 'tableofcontents_comments_level' => '3', |
|
| 124 | - // Back to top label |
|
| 125 | - 'tableofcontents_back_to_top' => '', |
|
| 126 | - // Back to top location |
|
| 127 | - 'tableofcontents_back_to_top_location' => 'bottom', |
|
| 128 | - // Minimum level where Back to Top appears |
|
| 129 | - 'tableofcontents_back_to_top_minlevel' => '2', |
|
| 130 | - // Maximum level where Back to Top appears |
|
| 131 | - 'tableofcontents_back_to_top_maxlevel' => '4', |
|
| 132 | - // Back to top anchor |
|
| 133 | - 'tableofcontents_back_to_top_anchor' => 'toc', |
|
| 134 | - // Scroll back to the table of contents |
|
| 135 | - 'tableofcontents_scroll_back_to_top' => 0, |
|
| 136 | - // Numbering method |
|
| 137 | - 'tableofcontents_numbering' => '0', |
|
| 138 | - // Add the number to the headers |
|
| 139 | - 'tableofcontents_number_headers' => 0, |
|
| 140 | - // Numbering mode |
|
| 141 | - 'tableofcontents_number_mode' => '0', |
|
| 142 | - // Numbering prefix |
|
| 143 | - 'tableofcontents_number_start_letter' => '', |
|
| 144 | - // Numbering separator |
|
| 145 | - 'tableofcontents_number_separator' => '.', |
|
| 146 | - // Numbering suffix |
|
| 147 | - 'tableofcontents_number_end_letter' => '.', |
|
| 110 | + // Identifier introducer |
|
| 111 | + 'tableofcontents_identifier_introducer' => 'header', |
|
| 112 | + // Identifier and number separator |
|
| 113 | + 'tableofcontents_id_separator' => '-', |
|
| 114 | + // How to generate missing header identifiers |
|
| 115 | + 'tableofcontents_id_generator' => 'title', |
|
| 116 | + // List of tags allowed in table headers |
|
| 117 | + 'tableofcontents_allowed_tags' => '<em> <i> <strong> <b> <u> <del> <ins> <sub> <sup> <cite> <strike> <s> <tt> <span> <font> <abbr> <acronym> <dfn> <q> <bdo> <big> <small>', |
|
| 118 | + // Show attachments in the table of contents |
|
| 119 | + 'tableofcontents_attachments' => 0, |
|
| 120 | + // Add the comments to the table of contents |
|
| 121 | + 'tableofcontents_comments' => 0, |
|
| 122 | + // Select header level at which comments start |
|
| 123 | + 'tableofcontents_comments_level' => '3', |
|
| 124 | + // Back to top label |
|
| 125 | + 'tableofcontents_back_to_top' => '', |
|
| 126 | + // Back to top location |
|
| 127 | + 'tableofcontents_back_to_top_location' => 'bottom', |
|
| 128 | + // Minimum level where Back to Top appears |
|
| 129 | + 'tableofcontents_back_to_top_minlevel' => '2', |
|
| 130 | + // Maximum level where Back to Top appears |
|
| 131 | + 'tableofcontents_back_to_top_maxlevel' => '4', |
|
| 132 | + // Back to top anchor |
|
| 133 | + 'tableofcontents_back_to_top_anchor' => 'toc', |
|
| 134 | + // Scroll back to the table of contents |
|
| 135 | + 'tableofcontents_scroll_back_to_top' => 0, |
|
| 136 | + // Numbering method |
|
| 137 | + 'tableofcontents_numbering' => '0', |
|
| 138 | + // Add the number to the headers |
|
| 139 | + 'tableofcontents_number_headers' => 0, |
|
| 140 | + // Numbering mode |
|
| 141 | + 'tableofcontents_number_mode' => '0', |
|
| 142 | + // Numbering prefix |
|
| 143 | + 'tableofcontents_number_start_letter' => '', |
|
| 144 | + // Numbering separator |
|
| 145 | + 'tableofcontents_number_separator' => '.', |
|
| 146 | + // Numbering suffix |
|
| 147 | + 'tableofcontents_number_end_letter' => '.', |
|
| 148 | 148 | ), |
| 149 | - ); |
|
| 150 | - $input_format->filters = array( |
|
| 149 | + ); |
|
| 150 | + $input_format->filters = array( |
|
| 151 | 151 | 'boinctranslate' => array( |
| 152 | - // Delta => Weight for: BOINC translation filter to help split content into chunks for translations. |
|
| 153 | - '0' => '-10', |
|
| 152 | + // Delta => Weight for: BOINC translation filter to help split content into chunks for translations. |
|
| 153 | + '0' => '-10', |
|
| 154 | 154 | ), |
| 155 | 155 | 'pathologic' => array( |
| 156 | - // Delta => Weight for: Pathologic |
|
| 157 | - '0' => '-9', |
|
| 156 | + // Delta => Weight for: Pathologic |
|
| 157 | + '0' => '-9', |
|
| 158 | 158 | ), |
| 159 | 159 | 'bbcode' => array( |
| 160 | - // Delta => Weight for: BBCode |
|
| 161 | - '0' => '-8', |
|
| 160 | + // Delta => Weight for: BBCode |
|
| 161 | + '0' => '-8', |
|
| 162 | 162 | ), |
| 163 | 163 | 'htmlpurifier' => array( |
| 164 | - // Delta => Weight for: HTML Purifier |
|
| 165 | - '0' => '-7', |
|
| 164 | + // Delta => Weight for: HTML Purifier |
|
| 165 | + '0' => '-7', |
|
| 166 | 166 | ), |
| 167 | 167 | 'tableofcontents' => array( |
| 168 | - // Delta => Weight for: Table of contents |
|
| 169 | - '0' => '-6', |
|
| 168 | + // Delta => Weight for: Table of contents |
|
| 169 | + '0' => '-6', |
|
| 170 | 170 | ), |
| 171 | 171 | 'image_caption_filter' => array( |
| 172 | - // Delta => Weight for: Image caption filter |
|
| 173 | - '0' => '-5', |
|
| 172 | + // Delta => Weight for: Image caption filter |
|
| 173 | + '0' => '-5', |
|
| 174 | 174 | ), |
| 175 | - ); |
|
| 176 | - $input_format->machine = 'rich_text'; |
|
| 177 | - $input_formats['rich_text'] = $input_format; |
|
| 175 | + ); |
|
| 176 | + $input_format->machine = 'rich_text'; |
|
| 177 | + $input_formats['rich_text'] = $input_format; |
|
| 178 | 178 | |
| 179 | - $input_format = new stdClass; |
|
| 180 | - $input_format->api_version = 1; |
|
| 181 | - $input_format->name = 'Plain text'; |
|
| 182 | - $input_format->roles = array( |
|
| 179 | + $input_format = new stdClass; |
|
| 180 | + $input_format->api_version = 1; |
|
| 181 | + $input_format->name = 'Plain text'; |
|
| 182 | + $input_format->roles = array( |
|
| 183 | 183 | 3519698132 => 'administrator', |
| 184 | - ); |
|
| 185 | - $input_format->cache = FALSE; |
|
| 186 | - $input_format->settings = array( |
|
| 187 | - ); |
|
| 188 | - $input_format->filters = array( |
|
| 184 | + ); |
|
| 185 | + $input_format->cache = FALSE; |
|
| 186 | + $input_format->settings = array( |
|
| 187 | + ); |
|
| 188 | + $input_format->filters = array( |
|
| 189 | 189 | 'boinctranslate' => array( |
| 190 | - '0' => '10', |
|
| 190 | + '0' => '10', |
|
| 191 | 191 | ), |
| 192 | 192 | 'filter' => array( |
| 193 | - '0' => '10', |
|
| 193 | + '0' => '10', |
|
| 194 | 194 | ), |
| 195 | - ); |
|
| 196 | - $input_format->machine = 'plain_text'; |
|
| 197 | - $input_formats['plain_text'] = $input_format; |
|
| 195 | + ); |
|
| 196 | + $input_format->machine = 'plain_text'; |
|
| 197 | + $input_formats['plain_text'] = $input_format; |
|
| 198 | 198 | |
| 199 | - $input_format = new stdClass; |
|
| 200 | - $input_format->api_version = 1; |
|
| 201 | - $input_format->name = 'PHP code'; |
|
| 202 | - $input_format->roles = array(); |
|
| 203 | - $input_format->cache = FALSE; |
|
| 204 | - $input_format->settings = array( |
|
| 205 | - ); |
|
| 206 | - $input_format->filters = array( |
|
| 199 | + $input_format = new stdClass; |
|
| 200 | + $input_format->api_version = 1; |
|
| 201 | + $input_format->name = 'PHP code'; |
|
| 202 | + $input_format->roles = array(); |
|
| 203 | + $input_format->cache = FALSE; |
|
| 204 | + $input_format->settings = array( |
|
| 205 | + ); |
|
| 206 | + $input_format->filters = array( |
|
| 207 | 207 | 'php' => array( |
| 208 | - '0' => '0', |
|
| 208 | + '0' => '0', |
|
| 209 | 209 | ), |
| 210 | - ); |
|
| 211 | - $input_format->machine = 'php_code'; |
|
| 212 | - $input_formats['php_code'] = $input_format; |
|
| 210 | + ); |
|
| 211 | + $input_format->machine = 'php_code'; |
|
| 212 | + $input_formats['php_code'] = $input_format; |
|
| 213 | 213 | |
| 214 | - return $input_formats; |
|
| 214 | + return $input_formats; |
|
| 215 | 215 | |
| 216 | 216 | } |
@@ -4,57 +4,57 @@ |
||
| 4 | 4 | * Implementation of hook_fieldgroup_default_groups(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_fieldgroup_default_groups() { |
| 7 | - $groups = array(); |
|
| 7 | + $groups = array(); |
|
| 8 | 8 | |
| 9 | - // Exported group: group_boinctranslate_opts |
|
| 10 | - $groups['page-group_boinctranslate_opts'] = array( |
|
| 9 | + // Exported group: group_boinctranslate_opts |
|
| 10 | + $groups['page-group_boinctranslate_opts'] = array( |
|
| 11 | 11 | 'group_type' => 'standard', |
| 12 | 12 | 'type_name' => 'page', |
| 13 | 13 | 'group_name' => 'group_boinctranslate_opts', |
| 14 | 14 | 'label' => 'boinctranslate node options', |
| 15 | 15 | 'settings' => array( |
| 16 | - 'form' => array( |
|
| 16 | + 'form' => array( |
|
| 17 | 17 | 'style' => 'fieldset_collapsed', |
| 18 | 18 | 'description' => '', |
| 19 | - ), |
|
| 20 | - 'display' => array( |
|
| 19 | + ), |
|
| 20 | + 'display' => array( |
|
| 21 | 21 | 'description' => '', |
| 22 | 22 | 'teaser' => array( |
| 23 | - 'format' => 'fieldset', |
|
| 24 | - 'exclude' => 0, |
|
| 23 | + 'format' => 'fieldset', |
|
| 24 | + 'exclude' => 0, |
|
| 25 | 25 | ), |
| 26 | 26 | 'full' => array( |
| 27 | - 'format' => 'fieldset', |
|
| 28 | - 'exclude' => 0, |
|
| 27 | + 'format' => 'fieldset', |
|
| 28 | + 'exclude' => 0, |
|
| 29 | 29 | ), |
| 30 | 30 | '4' => array( |
| 31 | - 'format' => 'fieldset', |
|
| 32 | - 'exclude' => 0, |
|
| 31 | + 'format' => 'fieldset', |
|
| 32 | + 'exclude' => 0, |
|
| 33 | 33 | ), |
| 34 | 34 | '2' => array( |
| 35 | - 'format' => 'fieldset', |
|
| 36 | - 'exclude' => 0, |
|
| 35 | + 'format' => 'fieldset', |
|
| 36 | + 'exclude' => 0, |
|
| 37 | 37 | ), |
| 38 | 38 | '3' => array( |
| 39 | - 'format' => 'fieldset', |
|
| 40 | - 'exclude' => 0, |
|
| 39 | + 'format' => 'fieldset', |
|
| 40 | + 'exclude' => 0, |
|
| 41 | 41 | ), |
| 42 | 42 | 'token' => array( |
| 43 | - 'format' => 'fieldset', |
|
| 44 | - 'exclude' => 0, |
|
| 43 | + 'format' => 'fieldset', |
|
| 44 | + 'exclude' => 0, |
|
| 45 | 45 | ), |
| 46 | 46 | 'label' => 'above', |
| 47 | - ), |
|
| 47 | + ), |
|
| 48 | 48 | ), |
| 49 | 49 | 'weight' => '104', |
| 50 | 50 | 'fields' => array( |
| 51 | - '0' => 'field_boinctranslate_transifex', |
|
| 51 | + '0' => 'field_boinctranslate_transifex', |
|
| 52 | 52 | ), |
| 53 | - ); |
|
| 53 | + ); |
|
| 54 | 54 | |
| 55 | - // Translatables |
|
| 56 | - // Included for use with string extractors like potx. |
|
| 57 | - t('boinctranslate node options'); |
|
| 55 | + // Translatables |
|
| 56 | + // Included for use with string extractors like potx. |
|
| 57 | + t('boinctranslate node options'); |
|
| 58 | 58 | |
| 59 | - return $groups; |
|
| 59 | + return $groups; |
|
| 60 | 60 | } |
@@ -65,7 +65,7 @@ |
||
| 65 | 65 | // (so that bad guys can't tell if they have an unreplicated job) |
| 66 | 66 | |
| 67 | 67 | $config = get_config(); |
| 68 | - if ($app->target_nresults>0 && !$wu->canonical_resultid && !$wu->error_mask && !parse_bool($config, "dont_suppress_pending")) { |
|
| 68 | + if ($app->target_nresults > 0 && !$wu->canonical_resultid && !$wu->error_mask && !parse_bool($config, "dont_suppress_pending")) { |
|
| 69 | 69 | row2(tra("Tasks in progress"), tra("suppressed pending completion")); |
| 70 | 70 | end_table(); |
| 71 | 71 | } else { |
@@ -4,42 +4,42 @@ discard block |
||
| 4 | 4 | * Implementation of hook_content_default_fields(). |
| 5 | 5 | */ |
| 6 | 6 | function boinc_standard_content_default_fields() { |
| 7 | - $fields = array(); |
|
| 7 | + $fields = array(); |
|
| 8 | 8 | |
| 9 | - // Exported field: field_boinctranslate_transifex |
|
| 10 | - $fields['page-field_boinctranslate_transifex'] = array( |
|
| 9 | + // Exported field: field_boinctranslate_transifex |
|
| 10 | + $fields['page-field_boinctranslate_transifex'] = array( |
|
| 11 | 11 | 'field_name' => 'field_boinctranslate_transifex', |
| 12 | 12 | 'type_name' => 'page', |
| 13 | 13 | 'display_settings' => array( |
| 14 | - 'weight' => '101', |
|
| 15 | - 'parent' => '', |
|
| 16 | - 'label' => array( |
|
| 14 | + 'weight' => '101', |
|
| 15 | + 'parent' => '', |
|
| 16 | + 'label' => array( |
|
| 17 | 17 | 'format' => 'hidden', |
| 18 | - ), |
|
| 19 | - 'teaser' => array( |
|
| 18 | + ), |
|
| 19 | + 'teaser' => array( |
|
| 20 | 20 | 'format' => 'default', |
| 21 | 21 | 'exclude' => 0, |
| 22 | - ), |
|
| 23 | - 'full' => array( |
|
| 22 | + ), |
|
| 23 | + 'full' => array( |
|
| 24 | 24 | 'format' => 'hidden', |
| 25 | 25 | 'exclude' => 0, |
| 26 | - ), |
|
| 27 | - 'token' => array( |
|
| 26 | + ), |
|
| 27 | + 'token' => array( |
|
| 28 | 28 | 'format' => 'hidden', |
| 29 | 29 | 'exclude' => 0, |
| 30 | - ), |
|
| 31 | - '2' => array( |
|
| 30 | + ), |
|
| 31 | + '2' => array( |
|
| 32 | 32 | 'format' => 'hidden', |
| 33 | 33 | 'exclude' => 0, |
| 34 | - ), |
|
| 35 | - '3' => array( |
|
| 34 | + ), |
|
| 35 | + '3' => array( |
|
| 36 | 36 | 'format' => 'hidden', |
| 37 | 37 | 'exclude' => 0, |
| 38 | - ), |
|
| 39 | - '4' => array( |
|
| 38 | + ), |
|
| 39 | + '4' => array( |
|
| 40 | 40 | 'format' => 'hidden', |
| 41 | 41 | 'exclude' => 0, |
| 42 | - ), |
|
| 42 | + ), |
|
| 43 | 43 | ), |
| 44 | 44 | 'widget_active' => '1', |
| 45 | 45 | 'type' => 'text', |
@@ -53,23 +53,23 @@ discard block |
||
| 53 | 53 | 1|Export for translation', |
| 54 | 54 | 'allowed_values_php' => '', |
| 55 | 55 | 'widget' => array( |
| 56 | - 'default_value' => array( |
|
| 56 | + 'default_value' => array( |
|
| 57 | 57 | '0' => array( |
| 58 | - 'value' => 1, |
|
| 58 | + 'value' => 1, |
|
| 59 | + ), |
|
| 59 | 60 | ), |
| 60 | - ), |
|
| 61 | - 'default_value_php' => NULL, |
|
| 62 | - 'label' => 'Export to Transifex', |
|
| 63 | - 'weight' => '101', |
|
| 64 | - 'description' => 'If selected, this node will be exported to Transifex for translation. Otherwise the node will only be available in the default language.', |
|
| 65 | - 'type' => 'optionwidgets_onoff', |
|
| 66 | - 'module' => 'optionwidgets', |
|
| 61 | + 'default_value_php' => NULL, |
|
| 62 | + 'label' => 'Export to Transifex', |
|
| 63 | + 'weight' => '101', |
|
| 64 | + 'description' => 'If selected, this node will be exported to Transifex for translation. Otherwise the node will only be available in the default language.', |
|
| 65 | + 'type' => 'optionwidgets_onoff', |
|
| 66 | + 'module' => 'optionwidgets', |
|
| 67 | 67 | ), |
| 68 | - ); |
|
| 68 | + ); |
|
| 69 | 69 | |
| 70 | - // Translatables |
|
| 71 | - // Included for use with string extractors like potx. |
|
| 72 | - t('boinctranslate export to transifex'); |
|
| 70 | + // Translatables |
|
| 71 | + // Included for use with string extractors like potx. |
|
| 72 | + t('boinctranslate export to transifex'); |
|
| 73 | 73 | |
| 74 | - return $fields; |
|
| 74 | + return $fields; |
|
| 75 | 75 | } |
@@ -58,7 +58,7 @@ |
||
| 58 | 58 | 'value' => 1, |
| 59 | 59 | ), |
| 60 | 60 | ), |
| 61 | - 'default_value_php' => NULL, |
|
| 61 | + 'default_value_php' => null, |
|
| 62 | 62 | 'label' => 'Export to Transifex', |
| 63 | 63 | 'weight' => '101', |
| 64 | 64 | 'description' => 'If selected, this node will be exported to Transifex for translation. Otherwise the node will only be available in the default language.', |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | // |
| 33 | 33 | function get_pct_badges($badge_name_prefix, $badge_pctiles, $badge_images) { |
| 34 | 34 | $badges = array(); |
| 35 | - for ($i=0; $i<3; $i++) { |
|
| 35 | + for ($i = 0; $i < 3; $i++) { |
|
| 36 | 36 | $badges[$i] = get_badge($badge_name_prefix."_".$i, "Top ".$badge_pctiles[$i]."% in average credit", $badge_images[$i]); |
| 37 | 37 | } |
| 38 | 38 | return $badges; |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | // |
| 43 | 43 | function get_percentiles($is_user, $badge_pctiles) { |
| 44 | 44 | $percentiles = array(); |
| 45 | - for ($i=0; $i<3; $i++) { |
|
| 45 | + for ($i = 0; $i < 3; $i++) { |
|
| 46 | 46 | if ($is_user) { |
| 47 | - $percentiles[$i] = BoincUser::percentile("expavg_credit", "expavg_credit>1", 100-$badge_pctiles[$i]); |
|
| 47 | + $percentiles[$i] = BoincUser::percentile("expavg_credit", "expavg_credit>1", 100 - $badge_pctiles[$i]); |
|
| 48 | 48 | } else { |
| 49 | - $percentiles[$i] = BoincTeam::percentile("expavg_credit", "expavg_credit>1", 100-$badge_pctiles[$i]); |
|
| 49 | + $percentiles[$i] = BoincTeam::percentile("expavg_credit", "expavg_credit>1", 100 - $badge_pctiles[$i]); |
|
| 50 | 50 | } |
| 51 | 51 | if ($percentiles[$i] === false) { |
| 52 | 52 | die("Can't get percentiles\n"); |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | // Unassign other badges. |
| 60 | 60 | // |
| 61 | 61 | function assign_pct_badge($is_user, $item, $percentiles, $badges) { |
| 62 | - for ($i=0; $i<3; $i++) { |
|
| 62 | + for ($i = 0; $i < 3; $i++) { |
|
| 63 | 63 | if ($item->expavg_credit >= $percentiles[$i]) { |
| 64 | 64 | assign_badge($is_user, $item, $badges[$i]); |
| 65 | 65 | unassign_badges($is_user, $item, $badges, $i); |
@@ -73,13 +73,13 @@ discard block |
||
| 73 | 73 | // and assign/unassign RAC badges |
| 74 | 74 | // |
| 75 | 75 | function assign_badges($is_user, $badge_pctiles, $badge_images) { |
| 76 | - $kind = $is_user?"user":"team"; |
|
| 76 | + $kind = $is_user ? "user" : "team"; |
|
| 77 | 77 | $badges = get_pct_badges($kind."_pct", $badge_pctiles, $badge_images); |
| 78 | 78 | $pctiles = get_percentiles($is_user, $badge_pctiles); |
| 79 | 79 | //echo "thresholds for $kind badges: $pctiles[0] $pctiles[1] $pctiles[2]\n"; |
| 80 | 80 | |
| 81 | 81 | $n = 0; |
| 82 | - $maxid = $is_user?BoincUser::max("id"):BoincTeam::max("id"); |
|
| 82 | + $maxid = $is_user ?BoincUser::max("id") : BoincTeam::max("id"); |
|
| 83 | 83 | while ($n <= $maxid) { |
| 84 | 84 | $m = $n + 1000; |
| 85 | 85 | if ($is_user) { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | ) { |
| 78 | 78 | $badges = array(); |
| 79 | 79 | $limit = count($badge_level_names); |
| 80 | - for ($i=0; $i < $limit; $i++) { |
|
| 80 | + for ($i = 0; $i < $limit; $i++) { |
|
| 81 | 81 | $badges[$i] = get_badge($badge_name_prefix."_".$sub_project["short_name"]."_".$i, "$badge_level_names[$i] in ".$sub_project["name"]." credit", $sub_project["short_name"].$badge_images[$i]); |
| 82 | 82 | } |
| 83 | 83 | return $badges; |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | // count from highest to lowest level, so the user get's assigned the |
| 91 | 91 | // highest possible level and the lower levels get removed |
| 92 | 92 | // |
| 93 | - for ($i=count($levels)-1; $i>=0; $i--) { |
|
| 93 | + for ($i = count($levels) - 1; $i >= 0; $i--) { |
|
| 94 | 94 | if ($item->total_credit >= $levels[$i]) { |
| 95 | 95 | assign_badge($is_user, $item, $badges[$i]); |
| 96 | 96 | unassign_badges($is_user, $item, $badges, $i); |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | // count from highest to lowest level, so the user get's assigned the |
| 115 | 115 | // highest possible level and the lower levels get removed |
| 116 | 116 | // |
| 117 | - for ($i=count($levels)-1; $i>=0; $i--) { |
|
| 117 | + for ($i = count($levels) - 1; $i >= 0; $i--) { |
|
| 118 | 118 | if ($sub_total >= $levels[$i]) { |
| 119 | 119 | assign_badge($is_user, $item, $badges[$i]); |
| 120 | 120 | unassign_badges($is_user, $item, $badges, $i); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | $is_user, $badge_levels, $badge_level_names, $badge_images, |
| 135 | 135 | $subprojects_list |
| 136 | 136 | ) { |
| 137 | - $kind = $is_user?"user":"team"; |
|
| 137 | + $kind = $is_user ? "user" : "team"; |
|
| 138 | 138 | |
| 139 | 139 | // get badges for all subprojects including total |
| 140 | 140 | // |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | } |
| 144 | 144 | |
| 145 | 145 | $n = 0; |
| 146 | - $maxid = $is_user?BoincUser::max("id"):BoincTeam::max("id"); |
|
| 146 | + $maxid = $is_user ?BoincUser::max("id") : BoincTeam::max("id"); |
|
| 147 | 147 | while ($n <= $maxid) { |
| 148 | 148 | $m = $n + 1000; |
| 149 | 149 | if ($is_user) { |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | assign_tot_badge($is_user, $item, $badge_levels, $badges["total"]); |
| 162 | 162 | } else { |
| 163 | 163 | // appids come from project/project.inc |
| 164 | - $where_clause = "appid in (". implode(',', $sp["appids"]) .")"; |
|
| 164 | + $where_clause = "appid in (".implode(',', $sp["appids"]).")"; |
|
| 165 | 165 | assign_sub_badge( |
| 166 | 166 | $is_user, $item, $badge_levels, $badges[$sp["short_name"]], |
| 167 | 167 | $where_clause |