@@ -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')); |
@@ -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')); |
@@ -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( |
@@ -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); |