@@ -40,17 +40,17 @@ |
||
| 40 | 40 | |
| 41 | 41 | $flag_wrapper_classes_array = array(); |
| 42 | 42 | $flag_wrapper_classes_array[] = 'flag-wrapper'; |
| 43 | - $flag_wrapper_classes_array[] = 'flag-' . $variables['flag_css_name']; |
|
| 44 | - $flag_wrapper_classes_array[] = 'flag-' . $variables['flag_css_name'] . '-' . $entity_id; |
|
| 45 | - $variables['flag_wrapper_classes'] = implode(' ',$flag_wrapper_classes_array); |
|
| 43 | + $flag_wrapper_classes_array[] = 'flag-'.$variables['flag_css_name']; |
|
| 44 | + $flag_wrapper_classes_array[] = 'flag-'.$variables['flag_css_name'].'-'.$entity_id; |
|
| 45 | + $variables['flag_wrapper_classes'] = implode(' ', $flag_wrapper_classes_array); |
|
| 46 | 46 | |
| 47 | 47 | $flag_classes_array = array(); |
| 48 | 48 | $flag_classes_array[] = 'flag'; |
| 49 | - $flag_classes_array[] = $action . '-action'; |
|
| 50 | - $flag_classes_array[] = 'flag-link-' . $flag->link_type; |
|
| 49 | + $flag_classes_array[] = $action.'-action'; |
|
| 50 | + $flag_classes_array[] = 'flag-link-'.$flag->link_type; |
|
| 51 | 51 | $variables['flag_classes'] = implode(' ', $flag_classes_array); |
| 52 | 52 | $variables['is_flagged'] = $action; |
| 53 | - $variables['link_text'] = $flag->get_label($action . '_short', $entity_id); |
|
| 53 | + $variables['link_text'] = $flag->get_label($action.'_short', $entity_id); |
|
| 54 | 54 | |
| 55 | 55 | return theme('commons_follow_otheruser_flag', $variables); |
| 56 | 56 | } |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * Implements hook_form_alter(). |
| 130 | 130 | */ |
| 131 | 131 | function commons_follow_form_alter(&$form, &$form_state, $form_id) { |
| 132 | - if ($form_id != 'views_exposed_form' || strpos($form['#id'],'views-exposed-form-commons-bw') !== 0 || empty($form['following'])) { |
|
| 132 | + if ($form_id != 'views_exposed_form' || strpos($form['#id'], 'views-exposed-form-commons-bw') !== 0 || empty($form['following'])) { |
|
| 133 | 133 | return; |
| 134 | 134 | } |
| 135 | 135 | |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | // We don't use module_invoke_all() is we want to retain the array keys, |
| 207 | 207 | // which are the user IDs. |
| 208 | 208 | foreach (module_implements('commons_follow_get_nids') as $module) { |
| 209 | - $function = $module . '_commons_follow_get_nids'; |
|
| 209 | + $function = $module.'_commons_follow_get_nids'; |
|
| 210 | 210 | $result = $function($account, $options); |
| 211 | 211 | if (empty($result)) { |
| 212 | 212 | continue; |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | function commons_follow_views_api() { |
| 259 | 259 | return array( |
| 260 | 260 | 'api' => 3, |
| 261 | - 'path' => drupal_get_path('module', 'commons_follow') . '/includes/views', |
|
| 261 | + 'path' => drupal_get_path('module', 'commons_follow').'/includes/views', |
|
| 262 | 262 | ); |
| 263 | 263 | } |
| 264 | 264 | |
@@ -328,7 +328,7 @@ discard block |
||
| 328 | 328 | $followed_content = commons_follow_get_followed_content($account); |
| 329 | 329 | $followed_mids = array(); |
| 330 | 330 | foreach ($followed_content as $key => $content) { |
| 331 | - $function = $key . '_commons_follow_get_message_ids'; |
|
| 331 | + $function = $key.'_commons_follow_get_message_ids'; |
|
| 332 | 332 | if (function_exists($function)) { |
| 333 | 333 | $function($followed_mids, $followed_content); |
| 334 | 334 | } |
@@ -353,12 +353,12 @@ discard block |
||
| 353 | 353 | } |
| 354 | 354 | |
| 355 | 355 | global $user; |
| 356 | - $prefix = variable_get('message_subscribe_flag_prefix', 'subscribe') . '_'; |
|
| 356 | + $prefix = variable_get('message_subscribe_flag_prefix', 'subscribe').'_'; |
|
| 357 | 357 | |
| 358 | 358 | if (strpos($view->name, $prefix) === 0 && isset($view->args[0]) && $user->uid != $view->args[0]) { |
| 359 | 359 | $flag_content_keys = array_keys($query->table_queue); |
| 360 | 360 | |
| 361 | - foreach($flag_content_keys AS $key) { |
|
| 361 | + foreach ($flag_content_keys AS $key) { |
|
| 362 | 362 | if (strpos($key, 'flagging') === 0) { |
| 363 | 363 | //Convert the Send Email Query |
| 364 | 364 | $join = $query->table_queue[$key]['join']; |