Completed
Push — 7.x-3.x ( daa35d...1b5187 )
by Devin
03:09
created
modules/commons/commons_groups/commons_groups.features.field_instance.inc 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
   $commons_groups_entity_types = commons_groups_get_group_content_entity_types();
14 14
   if (!empty($commons_groups_entity_types)) {
15 15
     foreach ($commons_groups_entity_types as $entity_type => $bundles) {
16
-      foreach(array_keys($bundles) as $bundle) {
16
+      foreach (array_keys($bundles) as $bundle) {
17 17
         commons_groups_field_definition($field_instances, $entity_type, $bundle);
18 18
       }
19 19
     }
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
     // to create the group audience field for it when installing the profile.
26 26
     $group_bundles['node'] = array('group' => TRUE);
27 27
   }
28
-  foreach(array_keys($group_bundles['node']) as $bundle) {
28
+  foreach (array_keys($group_bundles['node']) as $bundle) {
29 29
     commons_groups_field_definition_group($field_instances, 'node', $bundle);
30 30
   }
31 31
 
@@ -257,7 +257,7 @@  discard block
 block discarded – undo
257 257
   );
258 258
 
259 259
   // Exported field_instance: 'node-group-group_group'
260
-  $field_instances["$entity_type-$bundle-" . OG_GROUP_FIELD] = array(
260
+  $field_instances["$entity_type-$bundle-".OG_GROUP_FIELD] = array(
261 261
     'bundle' => $bundle,
262 262
     'default_value' => array(
263 263
       0 => array(
Please login to merge, or discard this patch.
modules/commons/commons_groups/commons_groups.module 1 patch
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
   $hidden_permissions = array('subscribe', 'subscribe without approval');
29 29
   foreach ($hidden_permissions as $permission) {
30 30
     if (isset($form['permission'][$permission])) {
31
-      $form['permission'][$permission]['#markup'] .= ' ' . t('<strong>Disabled by the Commons Groups module.<strong>');
31
+      $form['permission'][$permission]['#markup'] .= ' '.t('<strong>Disabled by the Commons Groups module.<strong>');
32 32
     }
33 33
     foreach ($form['checkboxes'] as $index => $elements) {
34 34
       if (isset($elements['#options'][$permission])) {
@@ -67,14 +67,14 @@  discard block
 block discarded – undo
67 67
  */
68 68
 function commons_groups_help($path, $arg) {
69 69
   if (variable_get('commons_groups_needs_update', FALSE)) {
70
-    $message =  '<p>' . t("Drupal Commons 3.3 added a new, required field to control group privacy. Please edit your group(s) select one of the privacy options. Once all groups are
71
-      set, an administrator can dismiss the update notice.") . '</p>';
70
+    $message = '<p>'.t("Drupal Commons 3.3 added a new, required field to control group privacy. Please edit your group(s) select one of the privacy options. Once all groups are
71
+      set, an administrator can dismiss the update notice.").'</p>';
72 72
     if ($path == 'admin/content/groups/update') {
73 73
       return $message;
74 74
     }
75 75
     elseif ($arg[0] == 'node' && $arg[2] == 'edit') {
76 76
       $node = menu_get_object();
77
-      if($node->type == 'group' && empty($node->field_og_subscribe_settings)) {
77
+      if ($node->type == 'group' && empty($node->field_og_subscribe_settings)) {
78 78
         return $message;
79 79
       }
80 80
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     $breadcrumb[] = l(t('Groups'), 'groups');
98 98
     $group = node_load($entity->og_group_ref[LANGUAGE_NONE][0]['target_id']);
99 99
     if (node_access('view', $group)) {
100
-      $breadcrumb[] = l($group->title, 'node/' . $group->nid);
100
+      $breadcrumb[] = l($group->title, 'node/'.$group->nid);
101 101
     }
102 102
     drupal_set_breadcrumb($breadcrumb);
103 103
   }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 function commons_groups_form_node_form_alter(&$form, &$form_state, $form_id) {
110 110
   $node = $form['#node'];
111 111
 
112
-  list(, , $bundle) = entity_extract_ids('node', $node);
112
+  list(,, $bundle) = entity_extract_ids('node', $node);
113 113
 
114 114
   // Customizations to the node form for entities that are group content.
115 115
   $group_content_entity_types = commons_groups_get_group_content_entity_types();
@@ -135,14 +135,14 @@  discard block
 block discarded – undo
135 135
       // is selected.
136 136
       $form['field_og_access_default_value']['#states'] = array(
137 137
         'visible' => array(
138
-          ':input[name="field_og_subscribe_settings[' . LANGUAGE_NONE . ']"]' => array('value' => 'approval'),
138
+          ':input[name="field_og_subscribe_settings['.LANGUAGE_NONE.']"]' => array('value' => 'approval'),
139 139
         ),
140 140
       );
141 141
 
142 142
       $form['#after_build'] = array('commons_groups_form_group_node_after_build');
143 143
     }
144 144
 
145
-    $form['#attached']['css'][] = drupal_get_path('module', 'commons_groups') . '/css/commons_groups.css';
145
+    $form['#attached']['css'][] = drupal_get_path('module', 'commons_groups').'/css/commons_groups.css';
146 146
 
147 147
     // The group access is set on commons_groups_node_presave().
148 148
     $form['group_access'][LANGUAGE_NONE]['#required'] = FALSE;
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
       return '';
300 300
     }
301 301
     $contributors_count = $view->total_rows;
302
-    $output .= l(format_plural($contributors_count, '1 contributor', '@count contributors'), 'node/' . $group->nid . '/contributors');
302
+    $output .= l(format_plural($contributors_count, '1 contributor', '@count contributors'), 'node/'.$group->nid.'/contributors');
303 303
   }
304 304
   // Format the list of topics:
305 305
   if (!empty($group->field_topics[LANGUAGE_NONE])) {
@@ -310,14 +310,14 @@  discard block
 block discarded – undo
310 310
     $topics_text = ' discussing the @topics ';
311 311
     $t_args = array('@topics' => format_plural(count($topics), 'topic', 'topics'));
312 312
     foreach ($topics as $topic) {
313
-      $topics_text .= '!topic-' . $topic->tid;
313
+      $topics_text .= '!topic-'.$topic->tid;
314 314
       if ($topic == end($topics)) {
315 315
         $topics_text .= '.';
316 316
       }
317 317
       else {
318 318
         $topics_text .= ', ';
319 319
       }
320
-      $t_args['!topic-' . $topic->tid] = l(t($topic->name), 'taxonomy/term/' . $topic->tid);
320
+      $t_args['!topic-'.$topic->tid] = l(t($topic->name), 'taxonomy/term/'.$topic->tid);
321 321
     }
322 322
     $output .= t($topics_text, $t_args);
323 323
   }
@@ -361,7 +361,7 @@  discard block
 block discarded – undo
361 361
   if ($form_id == 'edit_profile_user_profile_form' || substr($form_id, -10) === '_node_form') {
362 362
     $internal_fields = array('field_unread_invitations', 'field_unread_messages', 'user_trusted_contacts', 'og_user_group_ref', 'group_access');
363 363
     foreach ($internal_fields as $field_name) {
364
-      if(isset($form[$field_name])) {
364
+      if (isset($form[$field_name])) {
365 365
         $form[$field_name]['#access'] = FALSE;
366 366
       }
367 367
     }
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
 function commons_groups_node_in_group_submit(&$form, &$form_state) {
382 382
   if (isset($form_state['values']['og_group_ref'][LANGUAGE_NONE][0])) {
383 383
     $group = $form_state['values']['og_group_ref'][LANGUAGE_NONE][0]['target_id'];
384
-    $form_state['redirect'] = 'node/' . $group;
384
+    $form_state['redirect'] = 'node/'.$group;
385 385
   }
386 386
 }
387 387
 
@@ -454,7 +454,7 @@  discard block
 block discarded – undo
454 454
 
455 455
   if (!isset($commons_entity_integrations)) {
456 456
     foreach (module_implements('commons_entity_integration') as $module) {
457
-      $commons_entity_integrations[$module] = call_user_func($module . '_commons_entity_integration');
457
+      $commons_entity_integrations[$module] = call_user_func($module.'_commons_entity_integration');
458 458
     }
459 459
   }
460 460
 
@@ -647,14 +647,14 @@  discard block
 block discarded – undo
647 647
 function commons_groups_related_groups_text($related_groups) {
648 648
   // In 1 group: "in the x group"
649 649
   if (count($related_groups) == 1) {
650
-    return t(' in the !group group', array('!group' => l($related_groups[0]->title, 'node/' . $related_groups[0]->nid)));
650
+    return t(' in the !group group', array('!group' => l($related_groups[0]->title, 'node/'.$related_groups[0]->nid)));
651 651
   }
652 652
 
653 653
   // In 2 groups: "in the x and y groups"
654 654
   if (count($related_groups) == 2) {
655 655
     return t(' in the !group-0 and !group-1 groups', array(
656
-      '!group-0' => l($related_groups[0]->title, 'node/' . $related_groups[0]->nid),
657
-      '!group-1' => l($related_groups[1]->title, 'node/' . $related_groups[1]->nid),
656
+      '!group-0' => l($related_groups[0]->title, 'node/'.$related_groups[0]->nid),
657
+      '!group-1' => l($related_groups[1]->title, 'node/'.$related_groups[1]->nid),
658 658
     ));
659 659
   }
660 660
 
@@ -666,11 +666,11 @@  discard block
 block discarded – undo
666 666
     // Prepare tokens for t() for each of the other groups.
667 667
     foreach ($related_groups as $key => $this_group) {
668 668
       $text .= "!group-$key, ";
669
-      $t_args["!group-$key"] = l($this_group->title, 'node/' . $this_group->nid);
669
+      $t_args["!group-$key"] = l($this_group->title, 'node/'.$this_group->nid);
670 670
     }
671 671
     // Prepare the last group token.
672 672
     $text .= " and !group-$last_group->nid groups.";
673
-    $t_args["!group-$last_group->nid"] = l($last_group->title, 'node/' . $last_group->nid);
673
+    $t_args["!group-$last_group->nid"] = l($last_group->title, 'node/'.$last_group->nid);
674 674
     // Prepare the full text with all of the groups and their tokens:
675 675
     return t($text, $t_args);
676 676
   }
@@ -753,7 +753,7 @@  discard block
 block discarded – undo
753 753
     // Determine whether the group is private according to the subscription
754 754
     // field.
755 755
     $private = $wrapper->field_og_subscribe_settings->value() == 'invitation';
756
-    $wrapper->{OG_ACCESS_FIELD}->set((int)$private);
756
+    $wrapper->{OG_ACCESS_FIELD}->set((int) $private);
757 757
     return;
758 758
   }
759 759
 
@@ -988,7 +988,7 @@  discard block
 block discarded – undo
988 988
             'alt' => $alt,
989 989
           ),
990 990
           '#path' => array(
991
-            'path' => 'user/' . $account->uid,
991
+            'path' => 'user/'.$account->uid,
992 992
             'options' => array(
993 993
               'attributes' => array(
994 994
                 'title' => t("View @user's profile.", array('@user' => format_username($account))),
@@ -1073,12 +1073,12 @@  discard block
 block discarded – undo
1073 1073
     return $element;
1074 1074
   }
1075 1075
 
1076
-  list($id, , $bundle) = entity_extract_ids($entity_type, $entity);
1076
+  list($id,, $bundle) = entity_extract_ids($entity_type, $entity);
1077 1077
 
1078 1078
   // The user has a pending membership request. Let her know that
1079 1079
   // her request is pending review.
1080 1080
   if (og_is_member($entity_type, $id, 'user', $account, array(OG_STATE_PENDING))) {
1081
-    $element[0] = array('#markup' => '<div class="subscription-type">' . t('Your membership request is pending review by a group organizer.') . '</div>');
1081
+    $element[0] = array('#markup' => '<div class="subscription-type">'.t('Your membership request is pending review by a group organizer.').'</div>');
1082 1082
     return $element;
1083 1083
   }
1084 1084
   // If user is blocked, they should not be able to apply for membership.
@@ -1128,7 +1128,7 @@  discard block
 block discarded – undo
1128 1128
 
1129 1129
     $url = "group/$entity_type/$id/subscribe";
1130 1130
     if ($settings['field_name']) {
1131
-      $url .= '/' . $settings['field_name'];
1131
+      $url .= '/'.$settings['field_name'];
1132 1132
     }
1133 1133
     // Set the needs update hook if we end up with a group call that is missing
1134 1134
     // the subscribe settings. We also check the variable first, because we
@@ -1154,7 +1154,7 @@  discard block
 block discarded – undo
1154 1154
           }
1155 1155
         }
1156 1156
         else {
1157
-          $element[0] = array('#markup' => '<div class="subscription-type">' . t('Invite-only group') . '</div>');
1157
+          $element[0] = array('#markup' => '<div class="subscription-type">'.t('Invite-only group').'</div>');
1158 1158
           return $element;
1159 1159
         }
1160 1160
       }
@@ -1170,7 +1170,7 @@  discard block
 block discarded – undo
1170 1170
     );
1171 1171
 
1172 1172
     if (!empty($subscription_type)) {
1173
-      $element[0]['#prefix'] = '<div class="subscription-type">' . $subscription_type . '</div>';
1173
+      $element[0]['#prefix'] = '<div class="subscription-type">'.$subscription_type.'</div>';
1174 1174
     }
1175 1175
 
1176 1176
     return $element;
Please login to merge, or discard this patch.
modules/commons/commons_polls/commons_polls.module 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
 function commons_polls_form_node_form_alter(&$form, &$form_state, $form_id) {
26 26
   $node = $form['#node'];
27 27
 
28
-  list(, , $bundle) = entity_extract_ids('node', $node);
28
+  list(,, $bundle) = entity_extract_ids('node', $node);
29 29
 
30 30
   if ($bundle == 'poll' && empty($node->nid)) {
31 31
     drupal_set_title(t('Create a poll'));
@@ -80,10 +80,10 @@  discard block
 block discarded – undo
80 80
   }
81 81
 
82 82
   $form['choice_wrapper']['add_choice'] = array(
83
-    '#markup' => '<a href="#" id="add-choice">' . t('Add more choices') . '</a>',
83
+    '#markup' => '<a href="#" id="add-choice">'.t('Add more choices').'</a>',
84 84
   );
85 85
 
86
-  $form['#attached']['js'][] = drupal_get_path('module', 'commons_polls') . '/js/commons_polls_partial_form.js';
86
+  $form['#attached']['js'][] = drupal_get_path('module', 'commons_polls').'/js/commons_polls_partial_form.js';
87 87
 
88 88
   $form['actions']['submit']['#value'] = t('Create');
89 89
 
Please login to merge, or discard this patch.
modules/commons/commons_radioactivity/commons_radioactivity.module 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     if (!empty($commons_radioactivity_entity_types)) {
34 34
       foreach ($commons_radioactivity_entity_types as $entity_type => $bundles) {
35
-        foreach(array_keys($bundles) as $bundle) {
35
+        foreach (array_keys($bundles) as $bundle) {
36 36
           $info['features']['field_instance'][] = "$entity_type-$bundle-field_radioactivity";
37 37
         }
38 38
       }
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     $form['field_radioactivity']['#attributes'] = array(
56 56
       'class' => array('radioactivity-form-energy'),
57 57
     );
58
-    $form['field_radioactivity']['#attached']['js'][] = drupal_get_path('module', 'commons_radioactivity') . '/commons_radioactivity.js';
58
+    $form['field_radioactivity']['#attached']['js'][] = drupal_get_path('module', 'commons_radioactivity').'/commons_radioactivity.js';
59 59
   }
60 60
 }
61 61
 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
   // Only operate on nodes that have the radioactivity field.
99 99
   if (!empty($node->field_radioactivity)) {
100 100
     // Find the node's ID and bundle.
101
-    list($id, , $bundle) = entity_extract_ids('node', $node);
101
+    list($id,, $bundle) = entity_extract_ids('node', $node);
102 102
 
103 103
     // Prevent groups from going negative in energy.
104 104
     if ($bundle == 'group' && $node->field_radioactivity[LANGUAGE_NONE][0]['radioactivity_energy'] + $value >= 0) {
Please login to merge, or discard this patch.
modules/commons/commons_utility_links/commons_utility_links.api.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
   if (user_is_logged_in()) {
37 37
     global $user;
38 38
     $account = $user;
39
-    $links['find_fiends']= array(
40
-      'href' => 'user/' . $account->uid . '/find_friends',
39
+    $links['find_fiends'] = array(
40
+      'href' => 'user/'.$account->uid.'/find_friends',
41 41
       'title' => t('Find friends'),
42 42
     );
43 43
   }
Please login to merge, or discard this patch.
modules/commons/commons_misc/commons_misc.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
     && !empty($form_state['build_info']['args'])
54 54
     && $form_state['build_info']['args'][0] == 'commons_origins') {
55 55
     // Add the color palette selection form to the apperance settings form.
56
-    require_once(drupal_get_path('theme', 'commons_origins') . '/commons_origins.palettes.inc');
56
+    require_once(drupal_get_path('theme', 'commons_origins').'/commons_origins.palettes.inc');
57 57
     commons_origins_palettes_form($form);
58 58
   }
59 59
 }
Please login to merge, or discard this patch.
modules/commons/commons_q_a/commons_q_a.module 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
             'attributes' => array(
38 38
               'title' => t('Answer this question'),
39 39
             ),
40
-            'href' => 'node/' . $node->nid,
40
+            'href' => 'node/'.$node->nid,
41 41
             'fragment' => 'answer',
42 42
           ),
43 43
         ),
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
       }
158 158
       $answer_form = drupal_get_form('answer_node_form', $node);
159 159
       $answer_form['header'] = array(
160
-        '#markup' => '<h3 id="answer" name="answer">' . t('Add a new answer') . '</h3>',
160
+        '#markup' => '<h3 id="answer" name="answer">'.t('Add a new answer').'</h3>',
161 161
         '#weight' => -10,
162 162
       );
163 163
       // Hide any vertical tabs that might be present.
@@ -202,7 +202,7 @@  discard block
 block discarded – undo
202 202
 function commons_q_a_form_node_form_alter(&$form, &$form_state, $form_id) {
203 203
   $node = $form['#node'];
204 204
 
205
-  list(, , $bundle) = entity_extract_ids('node', $node);
205
+  list(,, $bundle) = entity_extract_ids('node', $node);
206 206
 
207 207
   if ($bundle == 'question' && empty($node->nid)) {
208 208
     drupal_set_title(t('Ask a question'));
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
     $form['container']['comment_body'] = $form['comment_body'];
237 237
     $form['container']['actions'] = $form['actions'];
238 238
     unset($form['author']);
239
-    unset($form['subject']);  // We don't need a subject, they're pointless within comments.
239
+    unset($form['subject']); // We don't need a subject, they're pointless within comments.
240 240
     unset($form['comment_body']);
241 241
     unset($form['actions']);
242 242
   }
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
  */
259 259
 function commons_q_a_answer_submit($form, &$form_state) {
260 260
   // Redirect the user back to the related question.
261
-  $form_state['redirect'] = 'node/' . $form_state['values']['field_related_question'][LANGUAGE_NONE][0]['target_id'];
261
+  $form_state['redirect'] = 'node/'.$form_state['values']['field_related_question'][LANGUAGE_NONE][0]['target_id'];
262 262
 }
263 263
 
264 264
 /**
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     array(-1, 'down'),
340 340
   );
341 341
   $templates['commons_thumbs_up_down']->theme = 'rate_template_commons_thumbs_up_down';
342
-  $templates['commons_thumbs_up_down']->css = drupal_get_path('module', 'commons_q_a') . '/commons-thumbs-up-down.css';
342
+  $templates['commons_thumbs_up_down']->css = drupal_get_path('module', 'commons_q_a').'/commons-thumbs-up-down.css';
343 343
   $templates['commons_thumbs_up_down']->customizable = FALSE;
344 344
   $templates['commons_thumbs_up_down']->translate = TRUE;
345 345
   $templates['commons_thumbs_up_down']->use_source_translation = TRUE;
Please login to merge, or discard this patch.
commons_bw/includes/views/handlers/commons_bw_handler_node_partial_form.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
     // should be moved to this position from previously rendered form.
43 43
     // See partial_node_form.js.
44 44
     if (!empty($cache[$bundle])) {
45
-      return '<div class="partial-node-form-placeholder" data-bundle="' . $bundle . '"></div>';
45
+      return '<div class="partial-node-form-placeholder" data-bundle="'.$bundle.'"></div>';
46 46
     }
47 47
     $cache[$bundle] = TRUE;
48 48
 
Please login to merge, or discard this patch.
modules/commons/commons_bw/commons_bw.module 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
   if (!isset($node_types)) {
48 48
     foreach (module_implements('node_info') as $module) {
49
-      $node_types[$module] = call_user_func($module . '_node_info');
49
+      $node_types[$module] = call_user_func($module.'_node_info');
50 50
     }
51 51
   }
52 52
 
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
  */
96 96
 function commons_bw_form_views_exposed_form_alter(&$form, &$form_state, $form_id) {
97 97
   // Implements tweaks to exposed filters and sorts per the Commons designs.
98
-  if (strpos($form['#id'],'views-exposed-form-commons-bw') === 0) {
98
+  if (strpos($form['#id'], 'views-exposed-form-commons-bw') === 0) {
99 99
     // Remove the sort order (eg, descending vs ascending).
100 100
     $form['sort_order']['#access'] = FALSE;
101 101
     $form['sort_by']['#title'] = t('Sorted by');
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
   // See if we're building for the first time, or getting pre-saved values.
117 117
   $field_name = $form['#field']['field_name'];
118 118
 
119
-  if(!empty($form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form'])) {
119
+  if (!empty($form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form'])) {
120 120
     $display_default = $form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form'];
121 121
   }
122 122
   else if (isset($form_state['build_info']['args'][0]['display_in_partial_form'])) {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
   $instances = field_info_instances('node', $bundle);
156 156
 
157 157
   // Remove all fields except those marked as "display_in_partial_form".
158
-  foreach($instances as $field_name => $instance) {
158
+  foreach ($instances as $field_name => $instance) {
159 159
     if (empty($instance['display_in_partial_form'])) {
160 160
       unset($instances[$field_name]);
161 161
     }
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
 
187 187
   field_attach_form('node', $node, $form, $form_state, entity_language('node', $node));
188 188
 
189
-  foreach(element_children($form) as $field_name) {
189
+  foreach (element_children($form) as $field_name) {
190 190
     if (empty($instances[$field_name])) {
191 191
       $form[$field_name]['#access'] = FALSE;
192 192
     }
@@ -230,7 +230,7 @@  discard block
 block discarded – undo
230 230
   // Attach the browsing widget JS and give it a higher weight than
231 231
   // quicktabs.js.
232 232
   $form['#attached']['js'][] = array(
233
-    'data' => drupal_get_path('module', 'commons_bw') . '/js/partial_node_form.js',
233
+    'data' => drupal_get_path('module', 'commons_bw').'/js/partial_node_form.js',
234 234
     'type' => 'file',
235 235
     'weight' => 100,
236 236
   );
@@ -238,13 +238,13 @@  discard block
 block discarded – undo
238 238
   // Add in some descriptive classes for css down the line.
239 239
   $form['#attributes']['class'][] = 'node';
240 240
   $form['#attributes']['class'][] = 'commons-bw-partial-node-form';
241
-  $form['#attributes']['class'][] = 'commons-bw-partial-node-form-' . $bundle;
241
+  $form['#attributes']['class'][] = 'commons-bw-partial-node-form-'.$bundle;
242 242
 
243 243
   // Add a link to the full node form.
244 244
   $form['full_form'] = array(
245 245
     '#theme' => 'link',
246 246
     '#text' => t('Go to full form'),
247
-    '#path' => 'node/add/' . str_replace('_', '-', $bundle),
247
+    '#path' => 'node/add/'.str_replace('_', '-', $bundle),
248 248
     '#options' => array(
249 249
       'attributes' => array('class' => array('full-form')),
250 250
       'html' => FALSE,
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
  *   An array of return values of the hook implementations.
357 357
  */
358 358
 function commons_bw_get_tab_definitions($widget_type = 'group') {
359
-  $hook_name = 'commons_bw_' . $widget_type . '_widget';
359
+  $hook_name = 'commons_bw_'.$widget_type.'_widget';
360 360
 
361 361
   $tabs = module_invoke_all($hook_name);
362 362
 
@@ -399,7 +399,7 @@  discard block
 block discarded – undo
399 399
   uasort($items, 'element_sort');
400 400
 
401 401
   foreach ($items as $module => $item) {
402
-    $links[] = $item['link'] . ' ' . $item['text'];
402
+    $links[] = $item['link'].' '.$item['text'];
403 403
 
404 404
     // Populate the default content creation link.
405 405
     if (isset($item['default']) && $item['default']) {
@@ -410,10 +410,10 @@  discard block
 block discarded – undo
410 410
   $output = '';
411 411
 
412 412
   if (!empty($default)) {
413
-    $output .= $default['link'] . '<a class="commons-bw-create-choose"><span></span></a>';
413
+    $output .= $default['link'].'<a class="commons-bw-create-choose"><span></span></a>';
414 414
   }
415 415
 
416
-  $output .= '<div class="commons-bw-create-choose-bg"></div><div class="commons-bw-create-choose-holder">' . theme('item_list', array('items' => $links, 'type' => 'ul', 'attributes' => array('class' => 'commons-bw-create-all-widget-types'))) . '</div>';
416
+  $output .= '<div class="commons-bw-create-choose-bg"></div><div class="commons-bw-create-choose-holder">'.theme('item_list', array('items' => $links, 'type' => 'ul', 'attributes' => array('class' => 'commons-bw-create-all-widget-types'))).'</div>';
417 417
 
418 418
   return $output;
419 419
 }
@@ -463,7 +463,7 @@  discard block
 block discarded – undo
463 463
       $view->execute();
464 464
 
465 465
       // Append the result count to the tab title.
466
-      $tabs[$machine_name]['title'] = $tabs[$machine_name]['title'] . ' <span class="commons-bw-result-count">'. $view->total_rows . '</span>';
466
+      $tabs[$machine_name]['title'] = $tabs[$machine_name]['title'].' <span class="commons-bw-result-count">'.$view->total_rows.'</span>';
467 467
     }
468 468
 
469 469
     // Use the current tab as the quicktabs default if the tab settings specify.
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
   $path = drupal_get_path('module', 'commons_bw');
483 483
 
484 484
   return array(
485
-    $path . '/plugins/quicktabs_styles/commons_pills/commons_pills.css' => t('Commons Pills'),
486
-    $path . '/plugins/quicktabs_styles/commons_tabs/commons_tabs.css' => t('Commons Tabs'),
485
+    $path.'/plugins/quicktabs_styles/commons_pills/commons_pills.css' => t('Commons Pills'),
486
+    $path.'/plugins/quicktabs_styles/commons_tabs/commons_tabs.css' => t('Commons Tabs'),
487 487
   );
488 488
 }
Please login to merge, or discard this patch.