@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.features.field_base.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.features.field_base.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.views_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_default_views(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.strongarm.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_strongarm(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.features.field_instance.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.features.field_instance.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_instances(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_q_a.features.og_features_permission.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_q_a.features.og_features_permission.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_og_features_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Q&A feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Q&A feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_q_a.features.inc'; |
| 8 | 8 | |
@@ -202,7 +202,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -130,8 +130,7 @@ discard block |
||
| 130 | 130 | |
| 131 | 131 | if (user_is_anonymous()) { |
| 132 | 132 | $account = drupal_anonymous_user(); |
| 133 | - } |
|
| 134 | - else { |
|
| 133 | + } else { |
|
| 135 | 134 | $account = $user; |
| 136 | 135 | } |
| 137 | 136 | |
@@ -302,12 +301,10 @@ discard block |
||
| 302 | 301 | if ($results['rating'] > 0) { |
| 303 | 302 | $score = $results['rating']; |
| 304 | 303 | $score_class = 'positive'; |
| 305 | - } |
|
| 306 | - elseif ($results['rating'] < 0) { |
|
| 304 | + } elseif ($results['rating'] < 0) { |
|
| 307 | 305 | $score = $results['rating']; |
| 308 | 306 | $score_class = 'negative'; |
| 309 | - } |
|
| 310 | - else { |
|
| 307 | + } else { |
|
| 311 | 308 | $score = 0; |
| 312 | 309 | $score_class = 'neutral'; |
| 313 | 310 | } |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | // Create a user for each username. |
| 33 | 33 | foreach ($demo_usernames as $username) { |
| 34 | - list($first_name, $last_name) = explode(" ", $username); |
|
| 34 | + list($first_name, $last_name) = explode(" ", $username); |
|
| 35 | 35 | $normalized_username = commons_normalize_name($username); |
| 36 | 36 | $password = user_password(8); |
| 37 | 37 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $event->field_address[LANGUAGE_NONE][0]['postal_code'] = '01803'; |
| 208 | 208 | $event->field_address[LANGUAGE_NONE][0]['country'] = 'US'; |
| 209 | 209 | $event->field_address[LANGUAGE_NONE][0]['location'] = 'Waterfront'; |
| 210 | - $event->field_address[LANGUAGE_NONE][0]['administrative_area'] = 'MA'; |
|
| 210 | + $event->field_address[LANGUAGE_NONE][0]['administrative_area'] = 'MA'; |
|
| 211 | 211 | $event->field_address[LANGUAGE_NONE][0]['locality'] = 'Boston'; |
| 212 | 212 | $event->og_group_ref[LANGUAGE_NONE][0]['target_id'] = $demo_groups['boston']->nid; |
| 213 | 213 | node_save($event); |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_content_moderation.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_content_moderation.views_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_default_views(). |