Passed
Push — master ( 7a5639...e602b6 )
by Christian
09:25
created
drupal/sites/all/features/news/news.strongarm.inc 1 patch
Indentation   +69 added lines, -69 removed lines patch added patch discarded remove patch
@@ -4,87 +4,87 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function news_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_news';
13
-  $strongarm->value = 0;
14
-  $export['comment_anonymous_news'] = $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_news';
13
+    $strongarm->value = 0;
14
+    $export['comment_anonymous_news'] = $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_news';
20
-  $strongarm->value = '3';
21
-  $export['comment_controls_news'] = $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_news';
20
+    $strongarm->value = '3';
21
+    $export['comment_controls_news'] = $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_news';
27
-  $strongarm->value = '2';
28
-  $export['comment_default_mode_news'] = $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_news';
27
+    $strongarm->value = '2';
28
+    $export['comment_default_mode_news'] = $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_news';
34
-  $strongarm->value = '2';
35
-  $export['comment_default_order_news'] = $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_news';
34
+    $strongarm->value = '2';
35
+    $export['comment_default_order_news'] = $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_news';
41
-  $strongarm->value = '50';
42
-  $export['comment_default_per_page_news'] = $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_news';
41
+    $strongarm->value = '50';
42
+    $export['comment_default_per_page_news'] = $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_news';
48
-  $strongarm->value = '1';
49
-  $export['comment_form_location_news'] = $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_news';
48
+    $strongarm->value = '1';
49
+    $export['comment_form_location_news'] = $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_news';
55
-  $strongarm->value = '2';
56
-  $export['comment_news'] = $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_news';
55
+    $strongarm->value = '2';
56
+    $export['comment_news'] = $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_preview_news';
62
-  $strongarm->value = '0';
63
-  $export['comment_preview_news'] = $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_preview_news';
62
+    $strongarm->value = '0';
63
+    $export['comment_preview_news'] = $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_subject_field_news';
69
-  $strongarm->value = '1';
70
-  $export['comment_subject_field_news'] = $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_subject_field_news';
69
+    $strongarm->value = '1';
70
+    $export['comment_subject_field_news'] = $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_news';
76
-  $strongarm->value = '0';
77
-  $export['language_content_type_news'] = $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_news';
76
+    $strongarm->value = '0';
77
+    $export['language_content_type_news'] = $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_news';
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_news';
83
+    $strongarm->value = array(
84 84
     0 => 'status',
85 85
     1 => 'promote',
86
-  );
87
-  $export['node_options_news'] = $strongarm;
86
+    );
87
+    $export['node_options_news'] = $strongarm;
88 88
 
89
-  return $export;
89
+    return $export;
90 90
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/news/news.context.inc 1 patch
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -4,38 +4,38 @@
 block discarded – undo
4 4
  * Implementation of hook_context_default_contexts().
5 5
  */
6 6
 function news_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 = 'news_articles';
13
-  $context->description = '';
14
-  $context->tag = 'news';
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 = 'news_articles';
13
+    $context->description = '';
14
+    $context->tag = 'news';
15
+    $context->conditions = array(
16 16
     'node' => array(
17
-      'values' => array(
17
+        'values' => array(
18 18
         'news' => 'news',
19
-      ),
20
-      'options' => array(
19
+        ),
20
+        'options' => array(
21 21
         'node_form' => '1',
22
-      ),
22
+        ),
23 23
     ),
24 24
     'path' => array(
25
-      'values' => array(
25
+        'values' => array(
26 26
         'news/*' => 'news/*',
27
-      ),
27
+        ),
28 28
     ),
29
-  );
30
-  $context->reactions = array(
29
+    );
30
+    $context->reactions = array(
31 31
     'menu' => 'news',
32
-  );
33
-  $context->condition_mode = 0;
32
+    );
33
+    $context->condition_mode = 0;
34 34
 
35
-  // Translatables
36
-  // Included for use with string extractors like potx.
37
-  t('news');
38
-  $export['news_articles'] = $context;
35
+    // Translatables
36
+    // Included for use with string extractors like potx.
37
+    t('news');
38
+    $export['news_articles'] = $context;
39 39
 
40
-  return $export;
40
+    return $export;
41 41
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/discussion_forums/discussion_forums.context.inc 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -4,58 +4,58 @@
 block discarded – undo
4 4
  * Implementation of hook_context_default_contexts().
5 5
  */
6 6
 function discussion_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 = 'community_default';
13
-  $context->description = 'Highlight the Message Boards submenu when viewing the top level community page';
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 = 'community_default';
13
+    $context->description = 'Highlight the Message Boards submenu when viewing the top level community page';
14
+    $context->tag = 'community';
15
+    $context->conditions = array(
16 16
     'path' => array(
17
-      'values' => array(
17
+        'values' => array(
18 18
         'community' => 'community',
19
-      ),
19
+        ),
20 20
     ),
21
-  );
22
-  $context->reactions = array(
21
+    );
22
+    $context->reactions = array(
23 23
     'menu' => 'community/forum',
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('Highlight the Message Boards submenu when viewing the top level community page');
30
-  t('community');
31
-  $export['community_default'] = $context;
27
+    // Translatables
28
+    // Included for use with string extractors like potx.
29
+    t('Highlight the Message Boards submenu when viewing the top level community page');
30
+    t('community');
31
+    $export['community_default'] = $context;
32 32
 
33
-  $context = new stdClass;
34
-  $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
35
-  $context->api_version = 3;
36
-  $context->name = 'forum_topics';
37
-  $context->description = 'Highlight the Community menu when viewing forum topics';
38
-  $context->tag = 'community';
39
-  $context->conditions = array(
33
+    $context = new stdClass;
34
+    $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
35
+    $context->api_version = 3;
36
+    $context->name = 'forum_topics';
37
+    $context->description = 'Highlight the Community menu when viewing forum topics';
38
+    $context->tag = 'community';
39
+    $context->conditions = array(
40 40
     'node' => array(
41
-      'values' => array(
41
+        'values' => array(
42 42
         'forum' => 'forum',
43
-      ),
44
-      'options' => array(
43
+        ),
44
+        'options' => array(
45 45
         'node_form' => '1',
46
-      ),
46
+        ),
47 47
     ),
48
-  );
49
-  $context->reactions = array(
48
+    );
49
+    $context->reactions = array(
50 50
     'menu' => '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 Community menu when viewing forum topics');
57
-  t('community');
58
-  $export['forum_topics'] = $context;
54
+    // Translatables
55
+    // Included for use with string extractors like potx.
56
+    t('Highlight the Community menu when viewing forum topics');
57
+    t('community');
58
+    $export['forum_topics'] = $context;
59 59
 
60
-  return $export;
60
+    return $export;
61 61
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/discussion_forums/discussion_forums.strongarm.inc 1 patch
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -4,85 +4,85 @@
 block discarded – undo
4 4
  * Implementation of hook_strongarm().
5 5
  */
6 6
 function discussion_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_forum';
13
-  $strongarm->value = 0;
14
-  $export['comment_anonymous_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_forum';
13
+    $strongarm->value = 0;
14
+    $export['comment_anonymous_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_forum';
20
-  $strongarm->value = '1';
21
-  $export['comment_controls_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_forum';
20
+    $strongarm->value = '1';
21
+    $export['comment_controls_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_forum';
27
-  $strongarm->value = '2';
28
-  $export['comment_default_mode_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_forum';
27
+    $strongarm->value = '2';
28
+    $export['comment_default_mode_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_forum';
34
-  $strongarm->value = '2';
35
-  $export['comment_default_order_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_forum';
34
+    $strongarm->value = '2';
35
+    $export['comment_default_order_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_forum';
41
-  $strongarm->value = '10';
42
-  $export['comment_default_per_page_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_forum';
41
+    $strongarm->value = '10';
42
+    $export['comment_default_per_page_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_forum';
48
-  $strongarm->value = '0';
49
-  $export['comment_form_location_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_forum';
48
+    $strongarm->value = '0';
49
+    $export['comment_form_location_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_forum';
55
-  $strongarm->value = '2';
56
-  $export['comment_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_forum';
55
+    $strongarm->value = '2';
56
+    $export['comment_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_preview_forum';
62
-  $strongarm->value = '0';
63
-  $export['comment_preview_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_preview_forum';
62
+    $strongarm->value = '0';
63
+    $export['comment_preview_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_subject_field_forum';
69
-  $strongarm->value = '1';
70
-  $export['comment_subject_field_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_subject_field_forum';
69
+    $strongarm->value = '1';
70
+    $export['comment_subject_field_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 = 'quote';
76
-  $strongarm->value = array(
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 = 'quote';
76
+    $strongarm->value = array(
77 77
     'node_types' => array(
78
-      'news' => 'news',
79
-      'team_forum' => 'team_forum',
80
-      'forum' => 'forum',
78
+        'news' => 'news',
79
+        'team_forum' => 'team_forum',
80
+        'forum' => 'forum',
81 81
     ),
82 82
     'node_link_display' => 1,
83 83
     'subject_required' => 0,
84
-  );
85
-  $export['quote'] = $strongarm;
84
+    );
85
+    $export['quote'] = $strongarm;
86 86
 
87
-  return $export;
87
+    return $export;
88 88
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/discussion_forums/discussion_forums.module 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -8,55 +8,55 @@
 block discarded – undo
8 8
  * Make some changes to configurations after the feature has been enabled
9 9
  */
10 10
 function discussion_forums_enable() {
11
-  // Check that the forum access module has its internal role set up and that
12
-  // it has been renamed from "Forum Moderator," which is ridiculous
11
+    // Check that the forum access module has its internal role set up and that
12
+    // it has been renamed from "Forum Moderator," which is ridiculous
13 13
   
14
-  $better_name = t('forum control (system use only)');
14
+    $better_name = t('forum control (system use only)');
15 15
   
16
-  // Get the role ID of the forum access moderator role; this also sets up the
17
-  // role if for some reason it has not already been done
18
-  module_load_include('inc', 'forum_access', 'forum_access.node');
19
-  $rid = _forum_access_get_moderator_rid();
16
+    // Get the role ID of the forum access moderator role; this also sets up the
17
+    // role if for some reason it has not already been done
18
+    module_load_include('inc', 'forum_access', 'forum_access.node');
19
+    $rid = _forum_access_get_moderator_rid();
20 20
   
21
-  // The role export module really messes with role IDs... be sure things are
22
-  // normalized before thinking that the forum access role ID won't change
23
-  role_export_normalize();
21
+    // The role export module really messes with role IDs... be sure things are
22
+    // normalized before thinking that the forum access role ID won't change
23
+    role_export_normalize();
24 24
   
25
-  $roles = user_roles();
25
+    $roles = user_roles();
26 26
   
27
-  if (isset($roles[$rid]) AND $roles[$rid] == $better_name) {
27
+    if (isset($roles[$rid]) AND $roles[$rid] == $better_name) {
28 28
     // Life is good
29
-  }
30
-  else {
29
+    }
30
+    else {
31 31
     $better_rid = array_search($better_name, $roles);
32 32
     $old_rid = array_search('Forum Moderator', $roles);
33 33
     if (!$better_rid) {
34
-      if ($old_rid) {
34
+        if ($old_rid) {
35 35
         db_query("UPDATE {role} SET name = '%s' WHERE rid = %d",
36
-          $better_name, $old_rid);
36
+            $better_name, $old_rid);
37 37
         $better_rid = $old_rid;
38 38
         $old_rid = NULL;
39
-      }
40
-      else {
39
+        }
40
+        else {
41 41
         drupal_set_message(t('The Forum Access module is not set up right. Try disabling the Discussion Forums feature and then manually uninstall the Forum Access module before enabling Discussion Forums again.', 'error'));
42
-      }
42
+        }
43 43
     }
44 44
     // Use our "better named" role for the forum access moderator
45 45
     variable_set('forum_access_moderator_rid', $better_rid);
46 46
     if ($old_rid) {
47
-      // Delete the default forum access role
48
-      db_query("DELETE FROM {role} WHERE rid = '%d'", $old_rid);
47
+        // Delete the default forum access role
48
+        db_query("DELETE FROM {role} WHERE rid = '%d'", $old_rid);
49
+    }
49 50
     }
50
-  }
51 51
 }
52 52
 
53 53
 function discussion_forums_menu_alter(&$items) {
54
-  // Change the forum menu item to use the path: community/forum
55
-  $items['community'] = $items['forum'];
56
-  $items['community']['title'] = t('Community');
57
-  $items['community']['type'] = MENU_NORMAL_ITEM;
58
-  $items['community']['menu_name'] = 'primary-links';
59
-  $items['community/forum'] = $items['community'];
60
-  $items['community/forum']['title'] = t('Message boards');
61
-  unset($items['forum']);
54
+    // Change the forum menu item to use the path: community/forum
55
+    $items['community'] = $items['forum'];
56
+    $items['community']['title'] = t('Community');
57
+    $items['community']['type'] = MENU_NORMAL_ITEM;
58
+    $items['community']['menu_name'] = 'primary-links';
59
+    $items['community/forum'] = $items['community'];
60
+    $items['community/forum']['title'] = t('Message boards');
61
+    unset($items['forum']);
62 62
 }
Please login to merge, or discard this patch.
features/discussion_forums/discussion_forums.features.fe_block_settings.inc 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,12 +4,12 @@  discard block
 block discarded – undo
4 4
  * Implementation of hook_default_fe_block_settings().
5 5
  */
6 6
 function discussion_forums_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['comment_form_block-comment_form'] = array(
12
+    $theme['comment_form_block-comment_form'] = array(
13 13
     'module' => 'comment_form_block',
14 14
     'delta' => 'comment_form',
15 15
     'theme' => 'boinc',
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
 ?>',
43 43
     'title' => '',
44 44
     'cache' => '1',
45
-  );
45
+    );
46 46
 
47
-  $export['boinc'] = $theme;
47
+    $export['boinc'] = $theme;
48 48
 
49
-  // einstein
50
-  $theme = array();
49
+    // einstein
50
+    $theme = array();
51 51
 
52
-  $theme['comment_form_block-comment_form'] = array(
52
+    $theme['comment_form_block-comment_form'] = array(
53 53
     'module' => 'comment_form_block',
54 54
     'delta' => 'comment_form',
55 55
     'theme' => 'einstein',
@@ -82,14 +82,14 @@  discard block
 block discarded – undo
82 82
 ?>',
83 83
     'title' => '',
84 84
     'cache' => '1',
85
-  );
85
+    );
86 86
 
87
-  $export['einstein'] = $theme;
87
+    $export['einstein'] = $theme;
88 88
 
89
-  // garland
90
-  $theme = array();
89
+    // garland
90
+    $theme = array();
91 91
 
92
-  $theme['comment_form_block-comment_form'] = array(
92
+    $theme['comment_form_block-comment_form'] = array(
93 93
     'module' => 'comment_form_block',
94 94
     'delta' => 'comment_form',
95 95
     'theme' => 'garland',
@@ -122,16 +122,16 @@  discard block
 block discarded – undo
122 122
 ?>',
123 123
     'title' => '',
124 124
     'cache' => '1',
125
-  );
125
+    );
126 126
 
127
-  $export['garland'] = $theme;
127
+    $export['garland'] = $theme;
128 128
 
129
-  $theme_default = variable_get('theme_default', 'garland');
130
-  $themes = list_themes();
131
-  foreach ($export as $theme_key => $settings) {
129
+    $theme_default = variable_get('theme_default', 'garland');
130
+    $themes = list_themes();
131
+    foreach ($export as $theme_key => $settings) {
132 132
     if ($theme_key != $theme_default && empty($themes[$theme_key]->status)) {
133
-      unset($export[$theme_key]);
133
+        unset($export[$theme_key]);
134 134
     }
135
-  }
136
-  return $export;
135
+    }
136
+    return $export;
137 137
 }
Please login to merge, or discard this patch.
drupal/sites/all/features/discussion_forums/discussion_forums.features.inc 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -4,11 +4,11 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function discussion_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 == "strongarm" && $api == "strongarm") {
10
+    }
11
+    elseif ($module == "strongarm" && $api == "strongarm") {
12 12
     return array("version" => 1);
13
-  }
13
+    }
14 14
 }
Please login to merge, or discard this patch.
all/features/discussion_forums/discussion_forums.features.role_export.inc 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
  * Implementation of hook_role_export_defaults().
5 5
  */
6 6
 function discussion_forums_role_export_defaults() {
7
-  $roles = array();
7
+    $roles = array();
8 8
 
9
-  $roles['moderator'] = array(
9
+    $roles['moderator'] = array(
10 10
     'rid' => '1271379760',
11 11
     'name' => 'moderator',
12 12
     'machine_name' => 'moderator',
13
-  );
13
+    );
14 14
 
15
-  return $roles;
15
+    return $roles;
16 16
 }
Please login to merge, or discard this patch.
features/user_account_project_list/user_account_project_list.features.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@
 block discarded – undo
4 4
  * Implementation of hook_ctools_plugin_api().
5 5
  */
6 6
 function user_account_project_list_ctools_plugin_api() {
7
-  list($module, $api) = func_get_args();
8
-  if ($module == "panels_mini" && $api == "panels_default") {
7
+    list($module, $api) = func_get_args();
8
+    if ($module == "panels_mini" && $api == "panels_default") {
9 9
     return array("version" => 1);
10
-  }
10
+    }
11 11
 }
Please login to merge, or discard this patch.