@@ -1,5 +1,5 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Drupal needs this blank file. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Drupal needs this blank file. |
|
| 5 | + */ |
|
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_like.features.field_instance.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_like.features.field_instance.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_instances(). |
@@ -1,15 +1,15 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Like feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Like feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_like.features.inc'; |
| 8 | 8 | |
| 9 | 9 | /** |
| 10 | 10 | * Implements hook_strongarm_alter(). |
| 11 | 11 | */ |
| 12 | - function commons_like_strongarm_alter(&$items) { |
|
| 12 | + function commons_like_strongarm_alter(&$items) { |
|
| 13 | 13 | // Expose the Post content type for 'liking' via the Commons_like module |
| 14 | 14 | // by altering the configuration for the Rate.module widget that it provides. |
| 15 | 15 | if (!empty($items['rate_widgets']->value)) { |
@@ -68,10 +68,10 @@ discard block |
||
| 68 | 68 | function commons_like_existing_node_like_messages($acting_uid, $target_nids) { |
| 69 | 69 | $query = new EntityFieldQuery(); |
| 70 | 70 | $query->entityCondition('entity_type', 'message', '=') |
| 71 | - ->propertyCondition('uid', $acting_uid) |
|
| 72 | - ->propertyCondition('type', 'commons_like_user_likes_node', '=') |
|
| 73 | - ->fieldCondition('field_target_nodes', 'target_id', $target_nids, 'IN') |
|
| 74 | - ->execute(); |
|
| 71 | + ->propertyCondition('uid', $acting_uid) |
|
| 72 | + ->propertyCondition('type', 'commons_like_user_likes_node', '=') |
|
| 73 | + ->fieldCondition('field_target_nodes', 'target_id', $target_nids, 'IN') |
|
| 74 | + ->execute(); |
|
| 75 | 75 | |
| 76 | 76 | if (!empty($query->ordered_results)) { |
| 77 | 77 | $mids = array(); |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | // Expose the Post content type for 'liking' via the Commons_like module |
| 14 | 14 | // by altering the configuration for the Rate.module widget that it provides. |
| 15 | 15 | if (!empty($items['rate_widgets']->value)) { |
| 16 | - foreach($items['rate_widgets']->value as $key => $widget) { |
|
| 16 | + foreach ($items['rate_widgets']->value as $key => $widget) { |
|
| 17 | 17 | if ($widget->name == 'commons_like') { |
| 18 | 18 | $commons_entity_integrations = commons_entity_integration_info(); |
| 19 | 19 | if (!empty($commons_entity_integrations['node'])) { |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | if (!empty($query->ordered_results)) { |
| 77 | 77 | $mids = array(); |
| 78 | - foreach($query->ordered_results as $result) { |
|
| 78 | + foreach ($query->ordered_results as $result) { |
|
| 79 | 79 | $mids[] = $result->entity_id; |
| 80 | 80 | } |
| 81 | 81 | return $mids; |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_like.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_like.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_like.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_like.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_polls.features.user_permission.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_polls.features.user_permission.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_user_default_permissions(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_polls.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_polls.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_polls.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_polls.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 module integration for the Commons Polls module. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Commons module integration for the Commons Polls module. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_commons_entity_integration(). |