@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_polls.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_polls.strongarm.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_strongarm(). |
@@ -1,15 +1,15 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons polls feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons polls feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_polls.features.inc'; |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Implements hook_strongarm_alter(). |
| 11 | 11 | */ |
| 12 | - function commons_polls_strongarm_alter(&$items) { |
|
| 12 | + function commons_polls_strongarm_alter(&$items) { |
|
| 13 | 13 | // Expose the poll content type for integration with Commons Radioactivity |
| 14 | 14 | // and Commons Groups. |
| 15 | 15 | foreach (array('commons_radioactivity_entity_types', 'commons_groups_entity_types') as $key) { |
@@ -25,7 +25,7 @@ |
||
| 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')); |
@@ -17,14 +17,14 @@ |
||
| 17 | 17 | if ($op == 'flag') { |
| 18 | 18 | // A user following their own node should not increase radioactivity. |
| 19 | 19 | if ($node->uid != $account->uid) { |
| 20 | - commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 20 | + commons_radioactivity_incident_node($node, COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 21 | 21 | } |
| 22 | 22 | } |
| 23 | 23 | |
| 24 | 24 | if ($op == 'unflag') { |
| 25 | 25 | // A user unfollowing their own node should not decrease radioactivity. |
| 26 | 26 | if ($node->uid != $account->uid) { |
| 27 | - commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 27 | + commons_radioactivity_incident_node($node, -1 * COMMONS_RADIOACTIVITY_FLAG_NODE); |
|
| 28 | 28 | } |
| 29 | 29 | } |
| 30 | 30 | } |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_radioactivity.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_radioactivity.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_radioactivity.radioactivity_decay_profile.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_radioactivity.radioactivity_decay_profile.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_default_radioactivity_decay_profile(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Radioactivity Groups feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Radioactivity Groups feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_radioactivity_groups.features.inc'; |
| 8 | 8 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_radioactivity_groups.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_radioactivity_groups.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_radioactivity_groups.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_radioactivity_groups.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_api(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Radioactivity feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Radioactivity feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | // Include files contain hook implementations for the corresponding modules. |
| 8 | 8 | include_once 'commons_radioactivity.features.inc'; |
@@ -32,7 +32,7 @@ discard block |
||
| 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 | } |
@@ -98,7 +98,7 @@ discard block |
||
| 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) { |