@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_events.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_events.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_events.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_events.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_events.features.field_instance.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_events.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 | - * Drupal Commons Events feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Drupal Commons Events feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_events.features.inc'; |
| 8 | 8 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_events.features.field_base.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_events.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_body.features.field_base.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_body.features.field_base.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_field_default_field_bases(). |
@@ -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(); |