@@ -4,58 +4,58 @@ |
||
4 | 4 | * Implementation of hook_context_default_contexts(). |
5 | 5 | */ |
6 | 6 | function team_forums_context_default_contexts() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $context = new stdClass; |
|
10 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | - $context->api_version = 3; |
|
12 | - $context->name = 'team_forum_topic'; |
|
13 | - $context->description = 'Highlight the Message Boards submenu when viewing a team forum topic'; |
|
14 | - $context->tag = 'community'; |
|
15 | - $context->conditions = array( |
|
9 | + $context = new stdClass; |
|
10 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | + $context->api_version = 3; |
|
12 | + $context->name = 'team_forum_topic'; |
|
13 | + $context->description = 'Highlight the Message Boards submenu when viewing a team forum topic'; |
|
14 | + $context->tag = 'community'; |
|
15 | + $context->conditions = array( |
|
16 | 16 | 'node' => array( |
17 | - 'values' => array( |
|
17 | + 'values' => array( |
|
18 | 18 | 'team_forum' => 'team_forum', |
19 | - ), |
|
20 | - 'options' => array( |
|
19 | + ), |
|
20 | + 'options' => array( |
|
21 | 21 | 'node_form' => '1', |
22 | - ), |
|
22 | + ), |
|
23 | 23 | ), |
24 | - ); |
|
25 | - $context->reactions = array( |
|
24 | + ); |
|
25 | + $context->reactions = array( |
|
26 | 26 | 'menu' => 'community/forum', |
27 | - ); |
|
28 | - $context->condition_mode = 0; |
|
27 | + ); |
|
28 | + $context->condition_mode = 0; |
|
29 | 29 | |
30 | - // Translatables |
|
31 | - // Included for use with string extractors like potx. |
|
32 | - t('Highlight the Message Boards submenu when viewing a team forum topic'); |
|
33 | - t('community'); |
|
34 | - $export['team_forum_topic'] = $context; |
|
30 | + // Translatables |
|
31 | + // Included for use with string extractors like potx. |
|
32 | + t('Highlight the Message Boards submenu when viewing a team forum topic'); |
|
33 | + t('community'); |
|
34 | + $export['team_forum_topic'] = $context; |
|
35 | 35 | |
36 | - $context = new stdClass; |
|
37 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
38 | - $context->api_version = 3; |
|
39 | - $context->name = 'team_forums'; |
|
40 | - $context->description = 'Highlight the Message Boards submenu when viewing a team forum'; |
|
41 | - $context->tag = 'community'; |
|
42 | - $context->conditions = array( |
|
36 | + $context = new stdClass; |
|
37 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
38 | + $context->api_version = 3; |
|
39 | + $context->name = 'team_forums'; |
|
40 | + $context->description = 'Highlight the Message Boards submenu when viewing a team forum'; |
|
41 | + $context->tag = 'community'; |
|
42 | + $context->conditions = array( |
|
43 | 43 | 'path' => array( |
44 | - 'values' => array( |
|
44 | + 'values' => array( |
|
45 | 45 | 'community/teams/*/forum/*' => 'community/teams/*/forum/*', |
46 | - ), |
|
46 | + ), |
|
47 | 47 | ), |
48 | - ); |
|
49 | - $context->reactions = array( |
|
48 | + ); |
|
49 | + $context->reactions = array( |
|
50 | 50 | 'menu' => 'community/forum', |
51 | - ); |
|
52 | - $context->condition_mode = 0; |
|
51 | + ); |
|
52 | + $context->condition_mode = 0; |
|
53 | 53 | |
54 | - // Translatables |
|
55 | - // Included for use with string extractors like potx. |
|
56 | - t('Highlight the Message Boards submenu when viewing a team forum'); |
|
57 | - t('community'); |
|
58 | - $export['team_forums'] = $context; |
|
54 | + // Translatables |
|
55 | + // Included for use with string extractors like potx. |
|
56 | + t('Highlight the Message Boards submenu when viewing a team forum'); |
|
57 | + t('community'); |
|
58 | + $export['team_forums'] = $context; |
|
59 | 59 | |
60 | - return $export; |
|
60 | + return $export; |
|
61 | 61 | } |
@@ -4,43 +4,43 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function team_forums_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "context" && $api == "context") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "context" && $api == "context") { |
|
9 | 9 | return array("version" => 3); |
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 == "strongarm" && $api == "strongarm") { |
|
13 | + } |
|
14 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
15 | 15 | return array("version" => 1); |
16 | - } |
|
16 | + } |
|
17 | 17 | } |
18 | 18 | |
19 | 19 | /** |
20 | 20 | * Implementation of hook_node_info(). |
21 | 21 | */ |
22 | 22 | function team_forums_node_info() { |
23 | - $items = array( |
|
23 | + $items = array( |
|
24 | 24 | 'team_forum' => array( |
25 | - 'name' => t('Team forum topic'), |
|
26 | - 'module' => 'features', |
|
27 | - 'description' => t('A <em>team forum topic</em> is a special topic within a team forum. This may or may not be visible only to members of the corresponding team.'), |
|
28 | - 'has_title' => '1', |
|
29 | - 'title_label' => t('Subject'), |
|
30 | - 'has_body' => '1', |
|
31 | - 'body_label' => t('Body'), |
|
32 | - 'min_word_count' => '0', |
|
33 | - 'help' => '', |
|
25 | + 'name' => t('Team forum topic'), |
|
26 | + 'module' => 'features', |
|
27 | + 'description' => t('A <em>team forum topic</em> is a special topic within a team forum. This may or may not be visible only to members of the corresponding team.'), |
|
28 | + 'has_title' => '1', |
|
29 | + 'title_label' => t('Subject'), |
|
30 | + 'has_body' => '1', |
|
31 | + 'body_label' => t('Body'), |
|
32 | + 'min_word_count' => '0', |
|
33 | + 'help' => '', |
|
34 | 34 | ), |
35 | - ); |
|
36 | - return $items; |
|
35 | + ); |
|
36 | + return $items; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
40 | 40 | * Implementation of hook_views_api(). |
41 | 41 | */ |
42 | 42 | function team_forums_views_api() { |
43 | - return array( |
|
43 | + return array( |
|
44 | 44 | 'api' => '2', |
45 | - ); |
|
45 | + ); |
|
46 | 46 | } |
@@ -4,55 +4,55 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function team_forums_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: create team_forum content |
|
10 | - $permissions['create team_forum content'] = array( |
|
9 | + // Exported permission: create team_forum content |
|
10 | + $permissions['create team_forum content'] = array( |
|
11 | 11 | 'name' => 'create team_forum content', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'verified contributor', |
|
13 | + '0' => 'verified contributor', |
|
14 | 14 | ), |
15 | - ); |
|
15 | + ); |
|
16 | 16 | |
17 | - // Exported permission: delete any team_forum content |
|
18 | - $permissions['delete any team_forum content'] = array( |
|
17 | + // Exported permission: delete any team_forum content |
|
18 | + $permissions['delete any team_forum content'] = array( |
|
19 | 19 | 'name' => 'delete any team_forum content', |
20 | 20 | 'roles' => array( |
21 | - '0' => 'administrator', |
|
21 | + '0' => 'administrator', |
|
22 | 22 | ), |
23 | - ); |
|
23 | + ); |
|
24 | 24 | |
25 | - // Exported permission: delete own team_forum content |
|
26 | - $permissions['delete own team_forum content'] = array( |
|
25 | + // Exported permission: delete own team_forum content |
|
26 | + $permissions['delete own team_forum content'] = array( |
|
27 | 27 | 'name' => 'delete own team_forum content', |
28 | 28 | 'roles' => array( |
29 | - '0' => 'community member', |
|
29 | + '0' => 'community member', |
|
30 | 30 | ), |
31 | - ); |
|
31 | + ); |
|
32 | 32 | |
33 | - // Exported permission: edit any team_forum content |
|
34 | - $permissions['edit any team_forum content'] = array( |
|
33 | + // Exported permission: edit any team_forum content |
|
34 | + $permissions['edit any team_forum content'] = array( |
|
35 | 35 | 'name' => 'edit any team_forum content', |
36 | 36 | 'roles' => array( |
37 | - '0' => 'administrator', |
|
37 | + '0' => 'administrator', |
|
38 | 38 | ), |
39 | - ); |
|
39 | + ); |
|
40 | 40 | |
41 | - // Exported permission: edit own team_forum content |
|
42 | - $permissions['edit own team_forum content'] = array( |
|
41 | + // Exported permission: edit own team_forum content |
|
42 | + $permissions['edit own team_forum content'] = array( |
|
43 | 43 | 'name' => 'edit own team_forum content', |
44 | 44 | 'roles' => array( |
45 | - '0' => 'verified contributor', |
|
45 | + '0' => 'verified contributor', |
|
46 | 46 | ), |
47 | - ); |
|
47 | + ); |
|
48 | 48 | |
49 | - // Exported permission: manage boincteam forum |
|
50 | - $permissions['manage boincteam forum'] = array( |
|
49 | + // Exported permission: manage boincteam forum |
|
50 | + $permissions['manage boincteam forum'] = array( |
|
51 | 51 | 'name' => 'manage boincteam forum', |
52 | 52 | 'roles' => array( |
53 | - '0' => 'administrator', |
|
53 | + '0' => 'administrator', |
|
54 | 54 | ), |
55 | - ); |
|
55 | + ); |
|
56 | 56 | |
57 | - return $permissions; |
|
57 | + return $permissions; |
|
58 | 58 | } |
@@ -4,40 +4,40 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function teams_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "page_manager" && $api == "pages_default") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "page_manager" && $api == "pages_default") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
11 | - elseif ($module == "strongarm" && $api == "strongarm") { |
|
10 | + } |
|
11 | + elseif ($module == "strongarm" && $api == "strongarm") { |
|
12 | 12 | return array("version" => 1); |
13 | - } |
|
13 | + } |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | /** |
17 | 17 | * Implementation of hook_node_info(). |
18 | 18 | */ |
19 | 19 | function teams_node_info() { |
20 | - $items = array( |
|
20 | + $items = array( |
|
21 | 21 | 'team' => array( |
22 | - 'name' => t('Team'), |
|
23 | - 'module' => 'features', |
|
24 | - 'description' => t('A grouping of users, centered on a common interest.'), |
|
25 | - 'has_title' => '1', |
|
26 | - 'title_label' => t('Name'), |
|
27 | - 'has_body' => '1', |
|
28 | - 'body_label' => t('Description'), |
|
29 | - 'min_word_count' => '0', |
|
30 | - 'help' => '', |
|
22 | + 'name' => t('Team'), |
|
23 | + 'module' => 'features', |
|
24 | + 'description' => t('A grouping of users, centered on a common interest.'), |
|
25 | + 'has_title' => '1', |
|
26 | + 'title_label' => t('Name'), |
|
27 | + 'has_body' => '1', |
|
28 | + 'body_label' => t('Description'), |
|
29 | + 'min_word_count' => '0', |
|
30 | + 'help' => '', |
|
31 | 31 | ), |
32 | - ); |
|
33 | - return $items; |
|
32 | + ); |
|
33 | + return $items; |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | /** |
37 | 37 | * Implementation of hook_views_api(). |
38 | 38 | */ |
39 | 39 | function teams_views_api() { |
40 | - return array( |
|
40 | + return array( |
|
41 | 41 | 'api' => '2', |
42 | - ); |
|
42 | + ); |
|
43 | 43 | } |
@@ -4,23 +4,23 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function teams_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: create boincteam |
|
10 | - $permissions['create boincteam'] = array( |
|
9 | + // Exported permission: create boincteam |
|
10 | + $permissions['create boincteam'] = array( |
|
11 | 11 | 'name' => 'create boincteam', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'community member', |
|
13 | + '0' => 'community member', |
|
14 | 14 | ), |
15 | - ); |
|
15 | + ); |
|
16 | 16 | |
17 | - // Exported permission: join boincteam |
|
18 | - $permissions['join boincteam'] = array( |
|
17 | + // Exported permission: join boincteam |
|
18 | + $permissions['join boincteam'] = array( |
|
19 | 19 | 'name' => 'join boincteam', |
20 | 20 | 'roles' => array( |
21 | - '0' => 'community member', |
|
21 | + '0' => 'community member', |
|
22 | 22 | ), |
23 | - ); |
|
23 | + ); |
|
24 | 24 | |
25 | - return $permissions; |
|
25 | + return $permissions; |
|
26 | 26 | } |
@@ -4,9 +4,9 @@ discard block |
||
4 | 4 | * Implementation of hook_flag_default_flags(). |
5 | 5 | */ |
6 | 6 | function friends_flag_default_flags() { |
7 | - $flags = array(); |
|
8 | - // Exported flag: "Friend". |
|
9 | - $flags['friend'] = array( |
|
7 | + $flags = array(); |
|
8 | + // Exported flag: "Friend". |
|
9 | + $flags['friend'] = array( |
|
10 | 10 | 'content_type' => 'user', |
11 | 11 | 'title' => 'Friend', |
12 | 12 | 'global' => FALSE, |
@@ -20,12 +20,12 @@ discard block |
||
20 | 20 | 'unflag_denied_text' => '', |
21 | 21 | 'link_type' => 'confirm', |
22 | 22 | 'roles' => array( |
23 | - 'flag' => array( |
|
23 | + 'flag' => array( |
|
24 | 24 | '0' => 2, |
25 | - ), |
|
26 | - 'unflag' => array( |
|
25 | + ), |
|
26 | + 'unflag' => array( |
|
27 | 27 | '0' => 2, |
28 | - ), |
|
28 | + ), |
|
29 | 29 | ), |
30 | 30 | 'weight' => 0, |
31 | 31 | 'show_on_profile' => 1, |
@@ -34,11 +34,11 @@ discard block |
||
34 | 34 | 'unflag_confirmation' => 'Remove [display-name] as a friend?', |
35 | 35 | 'module' => 'friends', |
36 | 36 | 'locked' => array( |
37 | - '0' => 'name', |
|
37 | + '0' => 'name', |
|
38 | 38 | ), |
39 | 39 | 'api_version' => 2, |
40 | - ); |
|
41 | - return $flags; |
|
40 | + ); |
|
41 | + return $flags; |
|
42 | 42 | |
43 | 43 | } |
44 | 44 | |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | * Implementation of hook_views_api(). |
47 | 47 | */ |
48 | 48 | function friends_views_api() { |
49 | - return array( |
|
49 | + return array( |
|
50 | 50 | 'api' => '2', |
51 | - ); |
|
51 | + ); |
|
52 | 52 | } |
@@ -4,16 +4,16 @@ |
||
4 | 4 | * Implementation of hook_user_default_permissions(). |
5 | 5 | */ |
6 | 6 | function friends_user_default_permissions() { |
7 | - $permissions = array(); |
|
7 | + $permissions = array(); |
|
8 | 8 | |
9 | - // Exported permission: receive friend email notification |
|
10 | - $permissions['receive friend email notification'] = array( |
|
9 | + // Exported permission: receive friend email notification |
|
10 | + $permissions['receive friend email notification'] = array( |
|
11 | 11 | 'name' => 'receive friend email notification', |
12 | 12 | 'roles' => array( |
13 | - '0' => 'administrator', |
|
14 | - '1' => 'authenticated user', |
|
13 | + '0' => 'administrator', |
|
14 | + '1' => 'authenticated user', |
|
15 | 15 | ), |
16 | - ); |
|
16 | + ); |
|
17 | 17 | |
18 | - return $permissions; |
|
18 | + return $permissions; |
|
19 | 19 | } |
@@ -4,17 +4,17 @@ |
||
4 | 4 | * Implementation of hook_ctools_plugin_api(). |
5 | 5 | */ |
6 | 6 | function work_and_host_stats_ctools_plugin_api() { |
7 | - list($module, $api) = func_get_args(); |
|
8 | - if ($module == "page_manager" && $api == "pages_default") { |
|
7 | + list($module, $api) = func_get_args(); |
|
8 | + if ($module == "page_manager" && $api == "pages_default") { |
|
9 | 9 | return array("version" => 1); |
10 | - } |
|
10 | + } |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | /** |
14 | 14 | * Implementation of hook_views_api(). |
15 | 15 | */ |
16 | 16 | function work_and_host_stats_views_api() { |
17 | - return array( |
|
17 | + return array( |
|
18 | 18 | 'api' => '2', |
19 | - ); |
|
19 | + ); |
|
20 | 20 | } |
@@ -4,30 +4,30 @@ |
||
4 | 4 | * Implementation of hook_context_default_contexts(). |
5 | 5 | */ |
6 | 6 | function user_profiles_context_default_contexts() { |
7 | - $export = array(); |
|
7 | + $export = array(); |
|
8 | 8 | |
9 | - $context = new stdClass; |
|
10 | - $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | - $context->api_version = 3; |
|
12 | - $context->name = 'account--profile--form'; |
|
13 | - $context->description = 'Set the account context for the profile form'; |
|
14 | - $context->tag = ''; |
|
15 | - $context->conditions = array( |
|
9 | + $context = new stdClass; |
|
10 | + $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */ |
|
11 | + $context->api_version = 3; |
|
12 | + $context->name = 'account--profile--form'; |
|
13 | + $context->description = 'Set the account context for the profile form'; |
|
14 | + $context->tag = ''; |
|
15 | + $context->conditions = array( |
|
16 | 16 | 'path' => array( |
17 | - 'values' => array( |
|
17 | + 'values' => array( |
|
18 | 18 | 'account/info/edit/*' => 'account/info/edit/*', |
19 | - ), |
|
19 | + ), |
|
20 | 20 | ), |
21 | - ); |
|
22 | - $context->reactions = array( |
|
21 | + ); |
|
22 | + $context->reactions = array( |
|
23 | 23 | 'menu' => 'user/me/edit', |
24 | - ); |
|
25 | - $context->condition_mode = 0; |
|
24 | + ); |
|
25 | + $context->condition_mode = 0; |
|
26 | 26 | |
27 | - // Translatables |
|
28 | - // Included for use with string extractors like potx. |
|
29 | - t('Set the account context for the profile form'); |
|
30 | - $export['account--profile--form'] = $context; |
|
27 | + // Translatables |
|
28 | + // Included for use with string extractors like potx. |
|
29 | + t('Set the account context for the profile form'); |
|
30 | + $export['account--profile--form'] = $context; |
|
31 | 31 | |
32 | - return $export; |
|
32 | + return $export; |
|
33 | 33 | } |