@@ -83,7 +83,7 @@ |
||
| 83 | 83 | function commons_wikis_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 84 | 84 | $node = $form['#node']; |
| 85 | 85 | |
| 86 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 86 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 87 | 87 | |
| 88 | 88 | if ($bundle == 'wiki' && empty($node->nid)) { |
| 89 | 89 | drupal_set_title(t('Create a wiki')); |
@@ -134,7 +134,7 @@ |
||
| 134 | 134 | /** |
| 135 | 135 | * Implements hook_strongarm_alter(). |
| 136 | 136 | */ |
| 137 | - function commons_wikis_strongarm_alter(&$items) { |
|
| 137 | + function commons_wikis_strongarm_alter(&$items) { |
|
| 138 | 138 | // Expose the wiki content type for integration with Commons Radioactivity |
| 139 | 139 | // and Commons Groups. |
| 140 | 140 | foreach (array('commons_radioactivity_entity_types', 'commons_groups_entity_types') as $key) { |
@@ -14,7 +14,7 @@ |
||
| 14 | 14 | $commons_groups_entity_types = commons_topics_get_entity_types_with_topics(); |
| 15 | 15 | if (!empty($commons_groups_entity_types)) { |
| 16 | 16 | foreach ($commons_groups_entity_types as $entity_type => $bundles) { |
| 17 | - foreach(array_keys($bundles) as $bundle) { |
|
| 17 | + foreach (array_keys($bundles) as $bundle) { |
|
| 18 | 18 | commons_topics_field_definition($field_instances, $entity_type, $bundle); |
| 19 | 19 | } |
| 20 | 20 | } |
@@ -39,7 +39,7 @@ |
||
| 39 | 39 | */ |
| 40 | 40 | function commons_posts_commons_bw_create_all_widget($group) { |
| 41 | 41 | if (og_user_access('node', $group->nid, 'create post content')) { |
| 42 | - $link = l(t('Create a post'),'node/add/post', |
|
| 42 | + $link = l(t('Create a post'), 'node/add/post', |
|
| 43 | 43 | array('attributes' => array('class' => 'commons-posts-create'), 'query' => array('og_group_ref' => $group->nid)) |
| 44 | 44 | ); |
| 45 | 45 | return array( |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | function commons_posts_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 13 | 13 | $node = $form['#node']; |
| 14 | 14 | |
| 15 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 15 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 16 | 16 | |
| 17 | 17 | if ($bundle == 'post' && empty($node->nid)) { |
| 18 | 18 | drupal_set_title(t('Create a post')); |
@@ -73,7 +73,7 @@ |
||
| 73 | 73 | /** |
| 74 | 74 | * Implements hook_strongarm_alter(). |
| 75 | 75 | */ |
| 76 | - function commons_posts_strongarm_alter(&$items) { |
|
| 76 | + function commons_posts_strongarm_alter(&$items) { |
|
| 77 | 77 | // Expose the post content type for integration with Commons Radioactivity |
| 78 | 78 | // and Commons Groups. |
| 79 | 79 | foreach (array('commons_radioactivity_entity_types', 'commons_groups_entity_types') as $key) { |
@@ -130,10 +130,10 @@ |
||
| 130 | 130 | function commons_activity_streams_existing_messages($acting_uid, $target_ids, $target_field, $message_type) { |
| 131 | 131 | $query = new EntityFieldQuery(); |
| 132 | 132 | $query->entityCondition('entity_type', 'message', '=') |
| 133 | - ->propertyCondition('uid', $acting_uid) |
|
| 134 | - ->propertyCondition('type', $message_type, '=') |
|
| 135 | - ->fieldCondition($target_field, 'target_id', $target_ids, 'IN') |
|
| 136 | - ->execute(); |
|
| 133 | + ->propertyCondition('uid', $acting_uid) |
|
| 134 | + ->propertyCondition('type', $message_type, '=') |
|
| 135 | + ->fieldCondition($target_field, 'target_id', $target_ids, 'IN') |
|
| 136 | + ->execute(); |
|
| 137 | 137 | |
| 138 | 138 | if (!empty($query->ordered_results)) { |
| 139 | 139 | $mids = array(); |
@@ -137,7 +137,7 @@ discard block |
||
| 137 | 137 | |
| 138 | 138 | if (!empty($query->ordered_results)) { |
| 139 | 139 | $mids = array(); |
| 140 | - foreach($query->ordered_results as $result) { |
|
| 140 | + foreach ($query->ordered_results as $result) { |
|
| 141 | 141 | $mids[] = $result->entity_id; |
| 142 | 142 | } |
| 143 | 143 | return $mids; |
@@ -224,7 +224,7 @@ discard block |
||
| 224 | 224 | // Create a token to retrieve the user picture formatted using any of the |
| 225 | 225 | // currently defined image styles. |
| 226 | 226 | foreach ($styles as $style_name => $style) { |
| 227 | - $tokens['picture:' . $style_name] = array( |
|
| 227 | + $tokens['picture:'.$style_name] = array( |
|
| 228 | 228 | 'name' => t('Picture: @st image style', array('@st' => $style_name)), |
| 229 | 229 | 'description' => t('Picture: @st image style', array('@st' => $style_name)), |
| 230 | 230 | ); |
@@ -252,7 +252,7 @@ discard block |
||
| 252 | 252 | |
| 253 | 253 | foreach ($tokens as $token => $original) { |
| 254 | 254 | if (strpos($token, 'picture:') !== FALSE) { |
| 255 | - list( , $style) = explode(':', $token); |
|
| 255 | + list(, $style) = explode(':', $token); |
|
| 256 | 256 | |
| 257 | 257 | // Prefer unique account pictures but fall back to the default user |
| 258 | 258 | // picture if necessary. |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | 'html' => TRUE, |
| 276 | 276 | ); |
| 277 | 277 | |
| 278 | - $replacements[$original] = "<div class='user-picture'>" . l($image, $user_path['path'], $link_options) . "</div>"; |
|
| 278 | + $replacements[$original] = "<div class='user-picture'>".l($image, $user_path['path'], $link_options)."</div>"; |
|
| 279 | 279 | } |
| 280 | 280 | } |
| 281 | 281 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | 'title' => t('User Follow'), // The item it appears as on the UI, |
| 29 | 29 | 'help' => t('Whether the user is following this content.'), // The help that appears on the UI, |
| 30 | 30 | 'real field' => 'nid', |
| 31 | - // Information for displaying a title as a field |
|
| 31 | + // Information for displaying a title as a field |
|
| 32 | 32 | 'filter' => array( |
| 33 | 33 | 'handler' => 'commons_follow_user_follow_filter', |
| 34 | 34 | 'label' => t('Following'), |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | 'title' => t('User Follow'), // The item it appears as on the UI, |
| 41 | 41 | 'help' => t('Whether the user is following items related to this message.'), // The help that appears on the UI, |
| 42 | 42 | 'real field' => 'mid', |
| 43 | - // Information for displaying a title as a field |
|
| 43 | + // Information for displaying a title as a field |
|
| 44 | 44 | 'filter' => array( |
| 45 | 45 | 'handler' => 'commons_follow_user_follow_filter_message', |
| 46 | 46 | 'label' => t('Following'), |
@@ -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'; |
@@ -12,7 +12,7 @@ |
||
| 12 | 12 | function commons_documents_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 13 | 13 | $node = $form['#node']; |
| 14 | 14 | |
| 15 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 15 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 16 | 16 | |
| 17 | 17 | if ($bundle == 'document' && empty($node->nid)) { |
| 18 | 18 | drupal_set_title(t('Create a document')); |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | */ |
| 41 | 41 | function commons_documents_commons_bw_create_all_widget($group) { |
| 42 | 42 | if (og_user_access('node', $group->nid, 'create document content')) { |
| 43 | - $link = l(t('Create a document'),'node/add/document', |
|
| 43 | + $link = l(t('Create a document'), 'node/add/document', |
|
| 44 | 44 | array('attributes' => array('class' => 'commons-documents-create'), 'query' => array('og_group_ref' => $group->nid)) |
| 45 | 45 | ); |
| 46 | 46 | return array( |