@@ -53,7 +53,7 @@ |
||
| 53 | 53 | && !empty($form_state['build_info']['args']) |
| 54 | 54 | && $form_state['build_info']['args'][0] == 'commons_origins') { |
| 55 | 55 | // Add the color palette selection form to the apperance settings form. |
| 56 | - require_once(drupal_get_path('theme', 'commons_origins') . '/commons_origins.palettes.inc'); |
|
| 56 | + require_once(drupal_get_path('theme', 'commons_origins').'/commons_origins.palettes.inc'); |
|
| 57 | 57 | commons_origins_palettes_form($form); |
| 58 | 58 | } |
| 59 | 59 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | 'attributes' => array( |
| 38 | 38 | 'title' => t('Answer this question'), |
| 39 | 39 | ), |
| 40 | - 'href' => 'node/' . $node->nid, |
|
| 40 | + 'href' => 'node/'.$node->nid, |
|
| 41 | 41 | 'fragment' => 'answer', |
| 42 | 42 | ), |
| 43 | 43 | ), |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | } |
| 158 | 158 | $answer_form = drupal_get_form('answer_node_form', $node); |
| 159 | 159 | $answer_form['header'] = array( |
| 160 | - '#markup' => '<h3 id="answer" name="answer">' . t('Add a new answer') . '</h3>', |
|
| 160 | + '#markup' => '<h3 id="answer" name="answer">'.t('Add a new answer').'</h3>', |
|
| 161 | 161 | '#weight' => -10, |
| 162 | 162 | ); |
| 163 | 163 | // Hide any vertical tabs that might be present. |
@@ -202,7 +202,7 @@ discard block |
||
| 202 | 202 | function commons_q_a_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 203 | 203 | $node = $form['#node']; |
| 204 | 204 | |
| 205 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 205 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 206 | 206 | |
| 207 | 207 | if ($bundle == 'question' && empty($node->nid)) { |
| 208 | 208 | drupal_set_title(t('Ask a question')); |
@@ -236,7 +236,7 @@ discard block |
||
| 236 | 236 | $form['container']['comment_body'] = $form['comment_body']; |
| 237 | 237 | $form['container']['actions'] = $form['actions']; |
| 238 | 238 | unset($form['author']); |
| 239 | - unset($form['subject']); // We don't need a subject, they're pointless within comments. |
|
| 239 | + unset($form['subject']); // We don't need a subject, they're pointless within comments. |
|
| 240 | 240 | unset($form['comment_body']); |
| 241 | 241 | unset($form['actions']); |
| 242 | 242 | } |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | function commons_q_a_answer_submit($form, &$form_state) { |
| 260 | 260 | // Redirect the user back to the related question. |
| 261 | - $form_state['redirect'] = 'node/' . $form_state['values']['field_related_question'][LANGUAGE_NONE][0]['target_id']; |
|
| 261 | + $form_state['redirect'] = 'node/'.$form_state['values']['field_related_question'][LANGUAGE_NONE][0]['target_id']; |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | /** |
@@ -339,7 +339,7 @@ discard block |
||
| 339 | 339 | array(-1, 'down'), |
| 340 | 340 | ); |
| 341 | 341 | $templates['commons_thumbs_up_down']->theme = 'rate_template_commons_thumbs_up_down'; |
| 342 | - $templates['commons_thumbs_up_down']->css = drupal_get_path('module', 'commons_q_a') . '/commons-thumbs-up-down.css'; |
|
| 342 | + $templates['commons_thumbs_up_down']->css = drupal_get_path('module', 'commons_q_a').'/commons-thumbs-up-down.css'; |
|
| 343 | 343 | $templates['commons_thumbs_up_down']->customizable = FALSE; |
| 344 | 344 | $templates['commons_thumbs_up_down']->translate = TRUE; |
| 345 | 345 | $templates['commons_thumbs_up_down']->use_source_translation = TRUE; |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | // should be moved to this position from previously rendered form. |
| 43 | 43 | // See partial_node_form.js. |
| 44 | 44 | if (!empty($cache[$bundle])) { |
| 45 | - return '<div class="partial-node-form-placeholder" data-bundle="' . $bundle . '"></div>'; |
|
| 45 | + return '<div class="partial-node-form-placeholder" data-bundle="'.$bundle.'"></div>'; |
|
| 46 | 46 | } |
| 47 | 47 | $cache[$bundle] = TRUE; |
| 48 | 48 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | if (!isset($node_types)) { |
| 48 | 48 | foreach (module_implements('node_info') as $module) { |
| 49 | - $node_types[$module] = call_user_func($module . '_node_info'); |
|
| 49 | + $node_types[$module] = call_user_func($module.'_node_info'); |
|
| 50 | 50 | } |
| 51 | 51 | } |
| 52 | 52 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | function commons_bw_form_views_exposed_form_alter(&$form, &$form_state, $form_id) { |
| 97 | 97 | // Implements tweaks to exposed filters and sorts per the Commons designs. |
| 98 | - if (strpos($form['#id'],'views-exposed-form-commons-bw') === 0) { |
|
| 98 | + if (strpos($form['#id'], 'views-exposed-form-commons-bw') === 0) { |
|
| 99 | 99 | // Remove the sort order (eg, descending vs ascending). |
| 100 | 100 | $form['sort_order']['#access'] = FALSE; |
| 101 | 101 | $form['sort_by']['#title'] = t('Sorted by'); |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | // See if we're building for the first time, or getting pre-saved values. |
| 117 | 117 | $field_name = $form['#field']['field_name']; |
| 118 | 118 | |
| 119 | - if(!empty($form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form'])) { |
|
| 119 | + if (!empty($form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form'])) { |
|
| 120 | 120 | $display_default = $form_state['field'][$field_name][LANGUAGE_NONE]['instance']['display_in_partial_form']; |
| 121 | 121 | } |
| 122 | 122 | else if (isset($form_state['build_info']['args'][0]['display_in_partial_form'])) { |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | $instances = field_info_instances('node', $bundle); |
| 156 | 156 | |
| 157 | 157 | // Remove all fields except those marked as "display_in_partial_form". |
| 158 | - foreach($instances as $field_name => $instance) { |
|
| 158 | + foreach ($instances as $field_name => $instance) { |
|
| 159 | 159 | if (empty($instance['display_in_partial_form'])) { |
| 160 | 160 | unset($instances[$field_name]); |
| 161 | 161 | } |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | |
| 187 | 187 | field_attach_form('node', $node, $form, $form_state, entity_language('node', $node)); |
| 188 | 188 | |
| 189 | - foreach(element_children($form) as $field_name) { |
|
| 189 | + foreach (element_children($form) as $field_name) { |
|
| 190 | 190 | if (empty($instances[$field_name])) { |
| 191 | 191 | $form[$field_name]['#access'] = FALSE; |
| 192 | 192 | } |
@@ -230,7 +230,7 @@ discard block |
||
| 230 | 230 | // Attach the browsing widget JS and give it a higher weight than |
| 231 | 231 | // quicktabs.js. |
| 232 | 232 | $form['#attached']['js'][] = array( |
| 233 | - 'data' => drupal_get_path('module', 'commons_bw') . '/js/partial_node_form.js', |
|
| 233 | + 'data' => drupal_get_path('module', 'commons_bw').'/js/partial_node_form.js', |
|
| 234 | 234 | 'type' => 'file', |
| 235 | 235 | 'weight' => 100, |
| 236 | 236 | ); |
@@ -238,13 +238,13 @@ discard block |
||
| 238 | 238 | // Add in some descriptive classes for css down the line. |
| 239 | 239 | $form['#attributes']['class'][] = 'node'; |
| 240 | 240 | $form['#attributes']['class'][] = 'commons-bw-partial-node-form'; |
| 241 | - $form['#attributes']['class'][] = 'commons-bw-partial-node-form-' . $bundle; |
|
| 241 | + $form['#attributes']['class'][] = 'commons-bw-partial-node-form-'.$bundle; |
|
| 242 | 242 | |
| 243 | 243 | // Add a link to the full node form. |
| 244 | 244 | $form['full_form'] = array( |
| 245 | 245 | '#theme' => 'link', |
| 246 | 246 | '#text' => t('Go to full form'), |
| 247 | - '#path' => 'node/add/' . str_replace('_', '-', $bundle), |
|
| 247 | + '#path' => 'node/add/'.str_replace('_', '-', $bundle), |
|
| 248 | 248 | '#options' => array( |
| 249 | 249 | 'attributes' => array('class' => array('full-form')), |
| 250 | 250 | 'html' => FALSE, |
@@ -356,7 +356,7 @@ discard block |
||
| 356 | 356 | * An array of return values of the hook implementations. |
| 357 | 357 | */ |
| 358 | 358 | function commons_bw_get_tab_definitions($widget_type = 'group') { |
| 359 | - $hook_name = 'commons_bw_' . $widget_type . '_widget'; |
|
| 359 | + $hook_name = 'commons_bw_'.$widget_type.'_widget'; |
|
| 360 | 360 | |
| 361 | 361 | $tabs = module_invoke_all($hook_name); |
| 362 | 362 | |
@@ -399,7 +399,7 @@ discard block |
||
| 399 | 399 | uasort($items, 'element_sort'); |
| 400 | 400 | |
| 401 | 401 | foreach ($items as $module => $item) { |
| 402 | - $links[] = $item['link'] . ' ' . $item['text']; |
|
| 402 | + $links[] = $item['link'].' '.$item['text']; |
|
| 403 | 403 | |
| 404 | 404 | // Populate the default content creation link. |
| 405 | 405 | if (isset($item['default']) && $item['default']) { |
@@ -410,10 +410,10 @@ discard block |
||
| 410 | 410 | $output = ''; |
| 411 | 411 | |
| 412 | 412 | if (!empty($default)) { |
| 413 | - $output .= $default['link'] . '<a class="commons-bw-create-choose"><span></span></a>'; |
|
| 413 | + $output .= $default['link'].'<a class="commons-bw-create-choose"><span></span></a>'; |
|
| 414 | 414 | } |
| 415 | 415 | |
| 416 | - $output .= '<div class="commons-bw-create-choose-bg"></div><div class="commons-bw-create-choose-holder">' . theme('item_list', array('items' => $links, 'type' => 'ul', 'attributes' => array('class' => 'commons-bw-create-all-widget-types'))) . '</div>'; |
|
| 416 | + $output .= '<div class="commons-bw-create-choose-bg"></div><div class="commons-bw-create-choose-holder">'.theme('item_list', array('items' => $links, 'type' => 'ul', 'attributes' => array('class' => 'commons-bw-create-all-widget-types'))).'</div>'; |
|
| 417 | 417 | |
| 418 | 418 | return $output; |
| 419 | 419 | } |
@@ -463,7 +463,7 @@ discard block |
||
| 463 | 463 | $view->execute(); |
| 464 | 464 | |
| 465 | 465 | // Append the result count to the tab title. |
| 466 | - $tabs[$machine_name]['title'] = $tabs[$machine_name]['title'] . ' <span class="commons-bw-result-count">'. $view->total_rows . '</span>'; |
|
| 466 | + $tabs[$machine_name]['title'] = $tabs[$machine_name]['title'].' <span class="commons-bw-result-count">'.$view->total_rows.'</span>'; |
|
| 467 | 467 | } |
| 468 | 468 | |
| 469 | 469 | // Use the current tab as the quicktabs default if the tab settings specify. |
@@ -482,7 +482,7 @@ discard block |
||
| 482 | 482 | $path = drupal_get_path('module', 'commons_bw'); |
| 483 | 483 | |
| 484 | 484 | return array( |
| 485 | - $path . '/plugins/quicktabs_styles/commons_pills/commons_pills.css' => t('Commons Pills'), |
|
| 486 | - $path . '/plugins/quicktabs_styles/commons_tabs/commons_tabs.css' => t('Commons Tabs'), |
|
| 485 | + $path.'/plugins/quicktabs_styles/commons_pills/commons_pills.css' => t('Commons Pills'), |
|
| 486 | + $path.'/plugins/quicktabs_styles/commons_tabs/commons_tabs.css' => t('Commons Tabs'), |
|
| 487 | 487 | ); |
| 488 | 488 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | */ |
| 10 | 10 | function commons_bw_ctools_plugin_directory($module, $plugin) { |
| 11 | 11 | if ($module == 'ctools' && $plugin == 'content_types') { |
| 12 | - return 'plugins/' . $plugin; |
|
| 12 | + return 'plugins/'.$plugin; |
|
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | 15 | |
@@ -19,6 +19,6 @@ discard block |
||
| 19 | 19 | function commons_bw_views_api() { |
| 20 | 20 | return array( |
| 21 | 21 | 'api' => 3, |
| 22 | - 'path' => drupal_get_path('module', 'commons_bw') . '/includes/views', |
|
| 22 | + 'path' => drupal_get_path('module', 'commons_bw').'/includes/views', |
|
| 23 | 23 | ); |
| 24 | 24 | } |
@@ -203,7 +203,7 @@ discard block |
||
| 203 | 203 | if ($type == 'node' && isset($build['#node'])) { |
| 204 | 204 | $node = $build['#node']; |
| 205 | 205 | |
| 206 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 206 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 207 | 207 | |
| 208 | 208 | if ($bundle == 'event') { |
| 209 | 209 | $build['attending'] = array( |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | function commons_events_form_node_form_alter(&$form, &$form_state, $form_id) { |
| 235 | 235 | $node = $form_state['node']; |
| 236 | 236 | |
| 237 | - list(, , $bundle) = entity_extract_ids('node', $node); |
|
| 237 | + list(,, $bundle) = entity_extract_ids('node', $node); |
|
| 238 | 238 | |
| 239 | 239 | if ($bundle == 'event' && empty($node->nid)) { |
| 240 | 240 | drupal_set_title(t('Create an event')); |
@@ -242,8 +242,8 @@ discard block |
||
| 242 | 242 | |
| 243 | 243 | if ($bundle == 'event') { |
| 244 | 244 | // Attach custom CSS and JS to the form. |
| 245 | - $form['#attached']['css'][] = drupal_get_path('module', 'commons_events') . '/css/commons_events.css'; |
|
| 246 | - $form['#attached']['js'][] = drupal_get_path('module', 'commons_events') . '/js/commons_events.js'; |
|
| 245 | + $form['#attached']['css'][] = drupal_get_path('module', 'commons_events').'/css/commons_events.css'; |
|
| 246 | + $form['#attached']['js'][] = drupal_get_path('module', 'commons_events').'/js/commons_events.js'; |
|
| 247 | 247 | |
| 248 | 248 | // Remove the '-None-' option from all the dropdowns. |
| 249 | 249 | unset($form['field_location'][$form['field_location']['#language']]['#options']['_none']); |
@@ -255,7 +255,7 @@ discard block |
||
| 255 | 255 | // Default the event organizer to the user who is creating the node. |
| 256 | 256 | if (empty($form['field_organizers'][$form['field_organizers']['#language']]['#default_value'])) { |
| 257 | 257 | global $user; |
| 258 | - $form['field_organizers'][$form['field_organizers']['#language']]['#default_value'] = format_username($user) . " (" . $user->uid . ")"; |
|
| 258 | + $form['field_organizers'][$form['field_organizers']['#language']]['#default_value'] = format_username($user)." (".$user->uid.")"; |
|
| 259 | 259 | } |
| 260 | 260 | |
| 261 | 261 | // Hide the Registration type field. |
@@ -444,7 +444,7 @@ discard block |
||
| 444 | 444 | if (module_exists('commons_events_solr')) { |
| 445 | 445 | $options = array( |
| 446 | 446 | 'query' => array( |
| 447 | - 'f[1]' => 'sm_og_group_ref:node:' . $group_id, |
|
| 447 | + 'f[1]' => 'sm_og_group_ref:node:'.$group_id, |
|
| 448 | 448 | ), |
| 449 | 449 | ); |
| 450 | 450 | |
@@ -465,11 +465,11 @@ discard block |
||
| 465 | 465 | */ |
| 466 | 466 | function commons_events_views_post_execute(&$view) { |
| 467 | 467 | if ($view->name == 'commons_events_upcoming' && $view->current_display == 'panel_pane_1') { |
| 468 | - $view->attachment_after = '<div class="more-link">' . commons_events_upcoming_more_link($view->args[0]) . '</div>'; |
|
| 468 | + $view->attachment_after = '<div class="more-link">'.commons_events_upcoming_more_link($view->args[0]).'</div>'; |
|
| 469 | 469 | } |
| 470 | 470 | |
| 471 | 471 | if ($view->name == 'commons_events_upcoming' && $view->current_display == 'panel_pane_2') { |
| 472 | - $view->attachment_before = '<div class="commons-event-count">' . format_plural(count($view->result), '1 event', '@count events') . '</div>'; |
|
| 472 | + $view->attachment_before = '<div class="commons-event-count">'.format_plural(count($view->result), '1 event', '@count events').'</div>'; |
|
| 473 | 473 | } |
| 474 | 474 | } |
| 475 | 475 | |
@@ -542,17 +542,17 @@ discard block |
||
| 542 | 542 | if ($date1 == $date2) { |
| 543 | 543 | // Wrap the result with the attributes. |
| 544 | 544 | return t('!start-time - !end-time', array( |
| 545 | - '!start-time' => '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $time1 . '</span>', |
|
| 546 | - '!end-time' => '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $time2 . $timezone . '</span>', |
|
| 545 | + '!start-time' => '<span class="date-display-start"'.drupal_attributes($attributes_start).'>'.$time1.'</span>', |
|
| 546 | + '!end-time' => '<span class="date-display-end"'.drupal_attributes($attributes_end).'>'.$time2.$timezone.'</span>', |
|
| 547 | 547 | )); |
| 548 | 548 | } |
| 549 | 549 | |
| 550 | 550 | // Wrap the result with the attributes. |
| 551 | 551 | return t('!start-date to !end-date, !start-time - !end-time', array( |
| 552 | - '!start-date' => '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $date1 . '</span>', |
|
| 553 | - '!end-date' => '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $date2 . '</span>', |
|
| 554 | - '!start-time' => '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $time1 . '</span>', |
|
| 555 | - '!end-time' => '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $time2 . $timezone . '</span>', |
|
| 552 | + '!start-date' => '<span class="date-display-start"'.drupal_attributes($attributes_start).'>'.$date1.'</span>', |
|
| 553 | + '!end-date' => '<span class="date-display-end"'.drupal_attributes($attributes_end).'>'.$date2.'</span>', |
|
| 554 | + '!start-time' => '<span class="date-display-start"'.drupal_attributes($attributes_start).'>'.$time1.'</span>', |
|
| 555 | + '!end-time' => '<span class="date-display-end"'.drupal_attributes($attributes_end).'>'.$time2.$timezone.'</span>', |
|
| 556 | 556 | )); |
| 557 | 557 | } |
| 558 | 558 | |
@@ -621,10 +621,10 @@ discard block |
||
| 621 | 621 | } |
| 622 | 622 | // Wrap the result with the attributes. |
| 623 | 623 | return t('!start-date to !end-date, !start-time - !end-time', array( |
| 624 | - '!start-date' => '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $date1 . '</span>', |
|
| 625 | - '!end-date' => '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $date2 . '</span>', |
|
| 626 | - '!start-time' => '<span class="date-display-start"' . drupal_attributes($attributes_start) . '>' . $time1 . '</span>', |
|
| 627 | - '!end-time' => '<span class="date-display-end"' . drupal_attributes($attributes_end) . '>' . $time2 . $timezone . '</span>', |
|
| 624 | + '!start-date' => '<span class="date-display-start"'.drupal_attributes($attributes_start).'>'.$date1.'</span>', |
|
| 625 | + '!end-date' => '<span class="date-display-end"'.drupal_attributes($attributes_end).'>'.$date2.'</span>', |
|
| 626 | + '!start-time' => '<span class="date-display-start"'.drupal_attributes($attributes_start).'>'.$time1.'</span>', |
|
| 627 | + '!end-time' => '<span class="date-display-end"'.drupal_attributes($attributes_end).'>'.$time2.$timezone.'</span>', |
|
| 628 | 628 | )); |
| 629 | 629 | } |
| 630 | 630 | |
@@ -10,7 +10,7 @@ discard block |
||
| 10 | 10 | * Get the search adapter and Solr environment for dynamic faceting. |
| 11 | 11 | */ |
| 12 | 12 | function commons_events_solr_search_environment() { |
| 13 | - return "apachesolr@" . apachesolr_default_environment(); |
|
| 13 | + return "apachesolr@".apachesolr_default_environment(); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -23,9 +23,9 @@ discard block |
||
| 23 | 23 | if (empty($env_id)) { |
| 24 | 24 | $env_id = commons_events_solr_search_environment(); |
| 25 | 25 | } |
| 26 | - foreach($facets as $facet) { |
|
| 26 | + foreach ($facets as $facet) { |
|
| 27 | 27 | $facet['settings'] = serialize($facet['settings']); |
| 28 | - $facet['name'] = $env_id . $facet['name']; |
|
| 28 | + $facet['name'] = $env_id.$facet['name']; |
|
| 29 | 29 | $facet['searcher'] = $env_id; |
| 30 | 30 | $merge = db_merge('facetapi') |
| 31 | 31 | ->key(array('name' => $facet['name'])) |
@@ -222,8 +222,8 @@ discard block |
||
| 222 | 222 | * Get the panels subtype for the facet block. |
| 223 | 223 | */ |
| 224 | 224 | function commons_events_solr_panel_facet_subtype($facet_name) { |
| 225 | - $facet_name = commons_events_solr_search_environment() . ':block:' . $facet_name; |
|
| 226 | - return 'facetapi-' . facetapi_hash_delta($facet_name); |
|
| 225 | + $facet_name = commons_events_solr_search_environment().':block:'.$facet_name; |
|
| 226 | + return 'facetapi-'.facetapi_hash_delta($facet_name); |
|
| 227 | 227 | } |
| 228 | 228 | |
| 229 | 229 | /** |
@@ -274,7 +274,7 @@ discard block |
||
| 274 | 274 | */ |
| 275 | 275 | function commons_events_solr_environment_form_submit($form, $form_state) { |
| 276 | 276 | if ($form_state['values']['make_default'] == 1) { |
| 277 | - commons_events_solr_create_facets('apachesolr@' . $form_state['build_info']['args']['0']['env_id']); |
|
| 277 | + commons_events_solr_create_facets('apachesolr@'.$form_state['build_info']['args']['0']['env_id']); |
|
| 278 | 278 | // Need to clear caches so we can rebuild block definitions. |
| 279 | 279 | cache_clear_all('*', 'cache_block', TRUE); |
| 280 | 280 | cache_clear_all('*', 'cache_apachesolr', TRUE); |
@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | if (!registration_is_registered($registration, NULL, $user->uid) |
| 32 | 32 | && registration_access('create', $registration, $user, $registration->type) |
| 33 | 33 | && registration_status('node', $event->nid, TRUE)) { |
| 34 | - return drupal_get_form('commons_events_attend_event_form_' . $event->nid, $event, $registration, $attendee_count); |
|
| 34 | + return drupal_get_form('commons_events_attend_event_form_'.$event->nid, $event, $registration, $attendee_count); |
|
| 35 | 35 | } |
| 36 | 36 | elseif (registration_is_registered($registration, NULL, $user->uid) && |
| 37 | 37 | registration_access('delete', $registration, $user, $registration->type)) { |
@@ -42,7 +42,7 @@ discard block |
||
| 42 | 42 | ->propertyCondition('entity_type', 'node'); |
| 43 | 43 | $result = $query->execute(); |
| 44 | 44 | |
| 45 | - return drupal_get_form('commons_events_cancel_event_form_' . $event->nid, $event, $result['registration']); |
|
| 45 | + return drupal_get_form('commons_events_cancel_event_form_'.$event->nid, $event, $result['registration']); |
|
| 46 | 46 | } |
| 47 | 47 | return ""; |
| 48 | 48 | } |
@@ -51,15 +51,15 @@ discard block |
||
| 51 | 51 | * Theme the event attendees list. |
| 52 | 52 | */ |
| 53 | 53 | function theme_commons_events_event_attendees($variables = array()) { |
| 54 | - $title = '<p class="commons-events-attendees-title">' . t('Attendees') . '</p>'; |
|
| 54 | + $title = '<p class="commons-events-attendees-title">'.t('Attendees').'</p>'; |
|
| 55 | 55 | $event_nid = $variables['event_nid']; |
| 56 | 56 | if (!isset($variables['display']) |
| 57 | 57 | || $variables['display'] != 'full') { |
| 58 | - return $title . views_embed_view('commons_events_event_attendee_list', 'default', $event_nid) |
|
| 59 | - . '<p class="commons-events-all-attendees"><a href="/node/' . $event_nid . '/attendees">' |
|
| 60 | - . t('See all attendees') . '</a></p>'; |
|
| 58 | + return $title.views_embed_view('commons_events_event_attendee_list', 'default', $event_nid) |
|
| 59 | + . '<p class="commons-events-all-attendees"><a href="/node/'.$event_nid.'/attendees">' |
|
| 60 | + . t('See all attendees').'</a></p>'; |
|
| 61 | 61 | } |
| 62 | - return $title . views_embed_view( |
|
| 62 | + return $title.views_embed_view( |
|
| 63 | 63 | 'commons_events_event_attendee_list', |
| 64 | 64 | 'commons_events_full_attendee_list', |
| 65 | 65 | $event_nid); |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | '#markup' => format_plural($attendee_count, '<span class="commons-event-count">1</span> attendee', '<span class="commons-event-count">@count</span> attendees'), |
| 44 | 44 | ); |
| 45 | 45 | $form['#attached']['css'] = array( |
| 46 | - drupal_get_path('module', 'commons_events') . '/css/commons_events.css', |
|
| 46 | + drupal_get_path('module', 'commons_events').'/css/commons_events.css', |
|
| 47 | 47 | ); |
| 48 | 48 | $form['#attributes'] = array('class' => array('commons-events-form-float')); |
| 49 | 49 | return $form; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | |
| 115 | 115 | $form['#attributes'] = array('class' => array('commons-events-form-float')); |
| 116 | 116 | $form['#attached']['css'] = array( |
| 117 | - drupal_get_path('module', 'commons_events') . '/css/commons_events.css', |
|
| 117 | + drupal_get_path('module', 'commons_events').'/css/commons_events.css', |
|
| 118 | 118 | ); |
| 119 | 119 | $form['registration'] = array( |
| 120 | 120 | '#type' => 'value', |