@@ -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( |
@@ -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 | |
@@ -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 | |
@@ -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'; |
@@ -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( |
@@ -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 | } |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | */ |
| 45 | 45 | function commons_q_a_commons_bw_create_all_widget($group) { |
| 46 | 46 | if (og_user_access('node', $group->nid, 'create question content')) { |
| 47 | - $link = l(t('Ask a question'),'node/add/question', |
|
| 47 | + $link = l(t('Ask a question'), 'node/add/question', |
|
| 48 | 48 | array('attributes' => array('class' => 'commons-q-a-create'), 'query' => array('og_group_ref' => $group->nid)) |
| 49 | 49 | ); |
| 50 | 50 | return array( |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | // Create a user for each username. |
| 33 | 33 | foreach ($demo_usernames as $username) { |
| 34 | - list($first_name, $last_name) = explode(" ", $username); |
|
| 34 | + list($first_name, $last_name) = explode(" ", $username); |
|
| 35 | 35 | $normalized_username = commons_normalize_name($username); |
| 36 | 36 | $password = user_password(8); |
| 37 | 37 | |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | $event->field_address[LANGUAGE_NONE][0]['postal_code'] = '01803'; |
| 208 | 208 | $event->field_address[LANGUAGE_NONE][0]['country'] = 'US'; |
| 209 | 209 | $event->field_address[LANGUAGE_NONE][0]['location'] = 'Waterfront'; |
| 210 | - $event->field_address[LANGUAGE_NONE][0]['administrative_area'] = 'MA'; |
|
| 210 | + $event->field_address[LANGUAGE_NONE][0]['administrative_area'] = 'MA'; |
|
| 211 | 211 | $event->field_address[LANGUAGE_NONE][0]['locality'] = 'Boston'; |
| 212 | 212 | $event->og_group_ref[LANGUAGE_NONE][0]['target_id'] = $demo_groups['boston']->nid; |
| 213 | 213 | node_save($event); |