@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_follow.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow.strongarm.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_strongarm(). |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Follow (Taxonomy terms) feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Follow (Taxonomy terms) feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_follow_term.features.inc'; |
| 8 | 8 | |
@@ -24,7 +24,7 @@ discard block |
||
| 24 | 24 | ->condition('fid', $flag_ids, 'IN') |
| 25 | 25 | ->condition('uid', $account->uid, '=') |
| 26 | 26 | ->condition('content_type', 'taxonomy_term', '=') |
| 27 | - ->fields('f',array('content_id')) |
|
| 27 | + ->fields('f', array('content_id')) |
|
| 28 | 28 | ->execute() |
| 29 | 29 | ->fetchAll(); |
| 30 | 30 | |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | } |
| 35 | 35 | |
| 36 | 36 | $tids = array(); |
| 37 | - foreach($result as $row) { |
|
| 37 | + foreach ($result as $row) { |
|
| 38 | 38 | $tids[] = (integer) $row->content_id; |
| 39 | 39 | } |
| 40 | 40 | |
@@ -48,14 +48,14 @@ discard block |
||
| 48 | 48 | $result = $query |
| 49 | 49 | ->addTag('node_access') |
| 50 | 50 | ->condition('tid', $tids, 'IN') |
| 51 | - ->fields('t',array('nid')) |
|
| 51 | + ->fields('t', array('nid')) |
|
| 52 | 52 | ->groupBy('nid') |
| 53 | 53 | ->execute() |
| 54 | 54 | ->fetchAll(); |
| 55 | 55 | |
| 56 | 56 | // Return the node IDs. |
| 57 | 57 | $nids = array(); |
| 58 | - foreach($result as $row) { |
|
| 58 | + foreach ($result as $row) { |
|
| 59 | 59 | $nids[] = (integer) $row->nid; |
| 60 | 60 | } |
| 61 | 61 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_follow_term.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow_term.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_follow_term.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow_term.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 | - * commons_follow.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow.features.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_ctools_plugin_api(). |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * Code for the Commons Follow (Users) feature. |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * Code for the Commons Follow (Users) feature. |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | include_once 'commons_follow_user.features.inc'; |
| 8 | 8 | |
@@ -92,12 +92,12 @@ discard block |
||
| 92 | 92 | function commons_follow_user_existing_follow_message($acting_uid, $target_uids) { |
| 93 | 93 | $query = new EntityFieldQuery(); |
| 94 | 94 | $query->entityCondition('entity_type', 'message', '=') |
| 95 | - ->propertyCondition('uid', $acting_uid) |
|
| 96 | - ->propertyCondition('type', 'commons_follow_user_user_followed', '=') |
|
| 97 | - ->fieldCondition('field_target_users', 'target_id', $target_uids, 'IN') |
|
| 98 | - ->execute(); |
|
| 95 | + ->propertyCondition('uid', $acting_uid) |
|
| 96 | + ->propertyCondition('type', 'commons_follow_user_user_followed', '=') |
|
| 97 | + ->fieldCondition('field_target_users', 'target_id', $target_uids, 'IN') |
|
| 98 | + ->execute(); |
|
| 99 | 99 | |
| 100 | - return !empty($query->ordered_results); |
|
| 100 | + return !empty($query->ordered_results); |
|
| 101 | 101 | } |
| 102 | 102 | |
| 103 | 103 | /** |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | ->condition('fid', $flag_ids, 'IN') |
| 27 | 27 | ->condition('uid', $account->uid, '=') |
| 28 | 28 | ->condition('content_type', 'user', '=') |
| 29 | - ->fields('f',array('content_id')) |
|
| 29 | + ->fields('f', array('content_id')) |
|
| 30 | 30 | ->execute() |
| 31 | 31 | ->fetchAll(); |
| 32 | 32 | |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | $uids = array(); |
| 39 | - foreach($result as $row) { |
|
| 39 | + foreach ($result as $row) { |
|
| 40 | 40 | $uids[] = (integer) $row->content_id; |
| 41 | 41 | } |
| 42 | 42 | |
@@ -1,8 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * @file |
|
| 4 | - * commons_follow_user.features.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow_user.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_follow_user.strongarm.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow_user.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_follow_user.views_default.inc |
|
| 5 | - */ |
|
| 3 | + * @file |
|
| 4 | + * commons_follow_user.views_default.inc |
|
| 5 | + */ |
|
| 6 | 6 | |
| 7 | 7 | /** |
| 8 | 8 | * Implements hook_views_default_views(). |
@@ -343,7 +343,7 @@ |
||
| 343 | 343 | $handler->display->display_options['style_options']['wrapper_class'] = 'view-profile-badges'; |
| 344 | 344 | $handler->display->display_options['row_plugin'] = 'fields'; |
| 345 | 345 | $handler->display->display_options['row_options']['hide_empty'] = TRUE; |
| 346 | - $handler->display->display_options['row_options']['default_field_elements'] = FALSE; /* No results behavior: Global: Text area */ |
|
| 346 | + $handler->display->display_options['row_options']['default_field_elements'] = FALSE; /* No results behavior: Global: Text area */ |
|
| 347 | 347 | $handler->display->display_options['empty']['area']['id'] = 'area'; |
| 348 | 348 | $handler->display->display_options['empty']['area']['table'] = 'views'; |
| 349 | 349 | $handler->display->display_options['empty']['area']['field'] = 'area'; |