@@ -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); |
@@ -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 | |
@@ -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 | |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | function commons_polls_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 26 | 26 | $node = $form['#node']; |
| 27 | 27 | |
| 28 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 28 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 29 | 29 | |
| 30 | 30 | if ($bundle == 'poll' && empty($node->nid)) { |
| 31 | 31 | drupal_set_title(t('Create a poll')); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | function commons_polls_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 26 | 26 | $node = $form['#node']; |
| 27 | 27 | |
| 28 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 28 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 29 | 29 | |
| 30 | 30 | if ($bundle == 'poll' && empty($node->nid)) { |
| 31 | 31 | drupal_set_title(t('Create a poll')); |
@@ -25,7 +25,7 @@ |
||
| 25 | 25 | function commons_polls_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 26 | 26 | $node = $form['#node']; |
| 27 | 27 | |
| 28 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 28 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 29 | 29 | |
| 30 | 30 | if ($bundle == 'poll' && empty($node->nid)) { |
| 31 | 31 | drupal_set_title(t('Create a poll')); |