@@ -31,7 +31,7 @@ |
||
| 31 | 31 | function content_profile_views_handlers() { |
| 32 | 32 | return array( |
| 33 | 33 | 'info' => array( |
| 34 | - 'path' => drupal_get_path('module', 'content_profile') .'/views', |
|
| 34 | + 'path' => drupal_get_path('module', 'content_profile').'/views', |
|
| 35 | 35 | ), |
| 36 | 36 | 'handlers' => array( |
| 37 | 37 | 'content_profile_views_handler_relationship' => array( |
@@ -13,29 +13,29 @@ discard block |
||
| 13 | 13 | $types = array_keys(content_profile_get_types('names')); |
| 14 | 14 | $type = array_shift($types); |
| 15 | 15 | $config = |
| 16 | -array ( |
|
| 16 | +array( |
|
| 17 | 17 | 'rules' => |
| 18 | - array ( |
|
| 18 | + array( |
|
| 19 | 19 | 'content_profile_rule_1' => |
| 20 | - array ( |
|
| 20 | + array( |
|
| 21 | 21 | '#type' => 'rule', |
| 22 | 22 | '#set' => 'event_user_login', |
| 23 | 23 | '#label' => 'Redirect to profile creation page, if users have no profile.', |
| 24 | 24 | '#active' => 0, |
| 25 | 25 | '#weight' => '0', |
| 26 | 26 | '#conditions' => |
| 27 | - array ( |
|
| 27 | + array( |
|
| 28 | 28 | 0 => |
| 29 | - array ( |
|
| 29 | + array( |
|
| 30 | 30 | '#negate' => 1, |
| 31 | 31 | '#weight' => 0, |
| 32 | 32 | '#info' => |
| 33 | - array ( |
|
| 33 | + array( |
|
| 34 | 34 | 'label' => 'Logged in user has his Profile created', |
| 35 | 35 | 'arguments' => |
| 36 | - array ( |
|
| 36 | + array( |
|
| 37 | 37 | 'user' => |
| 38 | - array ( |
|
| 38 | + array( |
|
| 39 | 39 | 'type' => 'user', |
| 40 | 40 | 'label' => 'User', |
| 41 | 41 | ), |
@@ -44,10 +44,10 @@ discard block |
||
| 44 | 44 | ), |
| 45 | 45 | '#name' => 'content_profile_user_has_profile_condition', |
| 46 | 46 | '#settings' => |
| 47 | - array ( |
|
| 47 | + array( |
|
| 48 | 48 | 'type' => $type, |
| 49 | 49 | '#argument map' => |
| 50 | - array ( |
|
| 50 | + array( |
|
| 51 | 51 | 'account' => 'user', |
| 52 | 52 | ), |
| 53 | 53 | ), |
@@ -55,13 +55,13 @@ discard block |
||
| 55 | 55 | ), |
| 56 | 56 | ), |
| 57 | 57 | '#actions' => |
| 58 | - array ( |
|
| 58 | + array( |
|
| 59 | 59 | 0 => |
| 60 | - array ( |
|
| 60 | + array( |
|
| 61 | 61 | '#type' => 'action', |
| 62 | 62 | '#settings' => |
| 63 | - array ( |
|
| 64 | - 'path' => 'node/add/'. str_replace('_', '-', $type), |
|
| 63 | + array( |
|
| 64 | + 'path' => 'node/add/'.str_replace('_', '-', $type), |
|
| 65 | 65 | 'query' => '', |
| 66 | 66 | 'fragment' => '', |
| 67 | 67 | 'force' => 1, |
@@ -69,12 +69,12 @@ discard block |
||
| 69 | 69 | ), |
| 70 | 70 | '#name' => 'rules_action_drupal_goto', |
| 71 | 71 | '#info' => |
| 72 | - array ( |
|
| 72 | + array( |
|
| 73 | 73 | 'label' => 'Redirect to profile creation page', |
| 74 | 74 | 'label callback' => false, |
| 75 | 75 | 'module' => 'System', |
| 76 | 76 | 'eval input' => |
| 77 | - array ( |
|
| 77 | + array( |
|
| 78 | 78 | 0 => 'path', |
| 79 | 79 | 1 => 'query', |
| 80 | 80 | 2 => 'fragment', |
@@ -83,21 +83,21 @@ discard block |
||
| 83 | 83 | '#weight' => 0, |
| 84 | 84 | ), |
| 85 | 85 | 1 => |
| 86 | - array ( |
|
| 86 | + array( |
|
| 87 | 87 | '#weight' => 0, |
| 88 | 88 | '#info' => |
| 89 | - array ( |
|
| 89 | + array( |
|
| 90 | 90 | 'label' => 'Show a message', |
| 91 | 91 | 'label callback' => false, |
| 92 | 92 | 'module' => 'System', |
| 93 | 93 | 'eval input' => |
| 94 | - array ( |
|
| 94 | + array( |
|
| 95 | 95 | 0 => 'message', |
| 96 | 96 | ), |
| 97 | 97 | ), |
| 98 | 98 | '#name' => 'rules_action_drupal_message', |
| 99 | 99 | '#settings' => |
| 100 | - array ( |
|
| 100 | + array( |
|
| 101 | 101 | 'message' => 'You haven\'t filled out your profile information yet. Please do so now!', |
| 102 | 102 | 'error' => 1, |
| 103 | 103 | ), |
@@ -11,9 +11,9 @@ discard block |
||
| 11 | 11 | */ |
| 12 | 12 | function theme_content_profile_display_add_link($element) { |
| 13 | 13 | $type = $element['#content_type']; |
| 14 | - $uid = $element['#admin'] ? 'uid='. intval($element['#uid']) .'&' : ''; |
|
| 14 | + $uid = $element['#admin'] ? 'uid='.intval($element['#uid']).'&' : ''; |
|
| 15 | 15 | $text = t($element['#admin'] ? "Create the user's @profile_node." : "Create your @profile_node.", array('@profile_node' => node_get_types('name', $type))); |
| 16 | - return l($text, content_profile_get_add_path($type, $element['#uid']), array('query' => $uid . drupal_get_destination(), 'html' => TRUE)); |
|
| 16 | + return l($text, content_profile_get_add_path($type, $element['#uid']), array('query' => $uid.drupal_get_destination(), 'html' => TRUE)); |
|
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | /** |
@@ -22,9 +22,9 @@ discard block |
||
| 22 | 22 | function theme_content_profile_display_link($element) { |
| 23 | 23 | if ($node = content_profile_load($element['#content_type'], $element['#uid'])) { |
| 24 | 24 | if (node_access('view', $node)) { |
| 25 | - $output = l(node_get_types('name', $node->type), 'node/'. $node->nid); |
|
| 25 | + $output = l(node_get_types('name', $node->type), 'node/'.$node->nid); |
|
| 26 | 26 | if ($element['#edit_link'] && node_access('update', $node)) { |
| 27 | - $output .= ' '. l('['. t('edit') .']', content_profile_get_edit_path($node), array('query' => drupal_get_destination())); |
|
| 27 | + $output .= ' '.l('['.t('edit').']', content_profile_get_edit_path($node), array('query' => drupal_get_destination())); |
|
| 28 | 28 | } |
| 29 | 29 | return $output; |
| 30 | 30 | } |
@@ -41,7 +41,7 @@ discard block |
||
| 41 | 41 | $variables['uid'] = $element['#uid']; |
| 42 | 42 | $variables['type'] = $element['#content_type']; |
| 43 | 43 | |
| 44 | - $path = drupal_get_path('module', 'content_profile') .'/content_profile.css'; |
|
| 44 | + $path = drupal_get_path('module', 'content_profile').'/content_profile.css'; |
|
| 45 | 45 | drupal_add_css($path, 'module', 'all', FALSE); |
| 46 | 46 | |
| 47 | 47 | $variables['title'] = check_plain(node_get_types('name', $node->type)); |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | * Themes the view tab |
| 62 | 62 | */ |
| 63 | 63 | function theme_content_profile_display_tab_view($node) { |
| 64 | - return l(t('View'), 'node/'. $node->nid); |
|
| 64 | + return l(t('View'), 'node/'.$node->nid); |
|
| 65 | 65 | } |
| 66 | 66 | |
| 67 | 67 | /** |
@@ -99,15 +99,15 @@ discard block |
||
| 99 | 99 | function content_profile_default_path_handler($action, $arg, $uid) { |
| 100 | 100 | $type = $action == 'add' ? $arg : $arg->type; |
| 101 | 101 | if (content_profile_get_settings($type, 'edit_tab') == 'top') { |
| 102 | - return 'user/'. $uid . '/profile/'. $type; |
|
| 102 | + return 'user/'.$uid.'/profile/'.$type; |
|
| 103 | 103 | } |
| 104 | 104 | elseif (content_profile_get_settings($type, 'edit_tab') == 'sub') { |
| 105 | - return 'user/'. $uid . '/edit/'. $type; |
|
| 105 | + return 'user/'.$uid.'/edit/'.$type; |
|
| 106 | 106 | } |
| 107 | 107 | elseif ($action == 'add') { |
| 108 | - return 'node/add/'. str_replace('_', '-', $arg); |
|
| 108 | + return 'node/add/'.str_replace('_', '-', $arg); |
|
| 109 | 109 | } |
| 110 | 110 | else { |
| 111 | - return 'node/'. $arg->nid .'/edit'; |
|
| 111 | + return 'node/'.$arg->nid.'/edit'; |
|
| 112 | 112 | } |
| 113 | 113 | } |
@@ -6,15 +6,15 @@ |
||
| 6 | 6 | * Pageroute intergration classes |
| 7 | 7 | */ |
| 8 | 8 | |
| 9 | -include_once(drupal_get_path('module', 'pageroute') . '/pageroute.page_edit.inc'); |
|
| 10 | -include_once(drupal_get_path('module', 'pageroute') . '/pageroute.page_view.inc'); |
|
| 9 | +include_once(drupal_get_path('module', 'pageroute').'/pageroute.page_edit.inc'); |
|
| 10 | +include_once(drupal_get_path('module', 'pageroute').'/pageroute.page_view.inc'); |
|
| 11 | 11 | |
| 12 | 12 | /** |
| 13 | 13 | * theme_content_profile_pageroute_empty generates a message, if there is no content profile for the user. |
| 14 | 14 | */ |
| 15 | 15 | function theme_content_profile_pageroute_empty($type_name) { |
| 16 | 16 | return '<div class="content-profile-empty">'. |
| 17 | - t('You have not created a @type yet. Go ahead and create one!', array('@type' => $type_name)) .'</div>'; |
|
| 17 | + t('You have not created a @type yet. Go ahead and create one!', array('@type' => $type_name)).'</div>'; |
|
| 18 | 18 | } |
| 19 | 19 | |
| 20 | 20 | /** |
@@ -32,12 +32,12 @@ discard block |
||
| 32 | 32 | $menu_block = variable_get('mobile_menu_block', FALSE); |
| 33 | 33 | $js_settings['mobile_menu_toggle'] = array( |
| 34 | 34 | 'default_menu' => $menu_default, |
| 35 | - 'css_class' => '#' . $menu_default, |
|
| 35 | + 'css_class' => '#'.$menu_default, |
|
| 36 | 36 | ); |
| 37 | 37 | |
| 38 | 38 | // Add #block-menu as a prefix to class if the menu will be loaded via block. |
| 39 | 39 | if ($menu_block) { |
| 40 | - $js_settings['mobile_menu_toggle']['css_class'] = '#block-menu-' . $menu_default; |
|
| 40 | + $js_settings['mobile_menu_toggle']['css_class'] = '#block-menu-'.$menu_default; |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | if (!empty($css_class)) { |
@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | $block = array(); |
| 57 | 57 | switch ($delta) { |
| 58 | 58 | case 0: |
| 59 | - drupal_add_js(drupal_get_path('module', 'mobile_menu_toggle') . '/mobile_menu_toggle.js'); |
|
| 59 | + drupal_add_js(drupal_get_path('module', 'mobile_menu_toggle').'/mobile_menu_toggle.js'); |
|
| 60 | 60 | $block['content'] = theme('mobile_menu_toggle'); |
| 61 | 61 | break; |
| 62 | 62 | } |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | |
| 25 | 25 | $url = privatemsg_get_link($account); |
| 26 | 26 | if (!empty($url)) { |
| 27 | - $variables['privatemsg'] = l('<span>' . t('Send PM') . '</span>', $url, array('attributes' => array('class' => 'author-pane-link', 'title' => t('Send @name a private message', array('@name' => $account_name))), 'html' => TRUE)); |
|
| 27 | + $variables['privatemsg'] = l('<span>'.t('Send PM').'</span>', $url, array('attributes' => array('class' => 'author-pane-link', 'title' => t('Send @name a private message', array('@name' => $account_name))), 'html' => TRUE)); |
|
| 28 | 28 | |
| 29 | 29 | // Early versions of the template used this variable so fill it for |
| 30 | 30 | // backwards compatability. |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | } |
| 66 | 66 | $count = 0; // This lets us prepare the key as we want it printed. |
| 67 | 67 | foreach ($this->view->display_handler->get_handlers('argument') as $arg => $handler) { |
| 68 | - $options[t('Arguments')]['%' . ++$count] = $handler->ui_name(); |
|
| 68 | + $options[t('Arguments')]['%'.++$count] = $handler->ui_name(); |
|
| 69 | 69 | } |
| 70 | 70 | |
| 71 | 71 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | $items = array(); |
| 80 | 80 | $title = t(ucwords($type)); |
| 81 | 81 | foreach ($options[$type] as $key => $value) { |
| 82 | - $items[] = $key .' == '. $value; |
|
| 82 | + $items[] = $key.' == '.$value; |
|
| 83 | 83 | } |
| 84 | 84 | $output .= theme('item_list', $items, $title); |
| 85 | 85 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $form['help'] = array( |
| 90 | 90 | '#type' => 'markup', |
| 91 | 91 | '#id' => 'views-tokens-help', |
| 92 | - '#value' => '<div><fieldset id="views-tokens-help"><legend>' . t('Replacement patterns') . '</legend>' . $output . '</fieldset></div>', |
|
| 92 | + '#value' => '<div><fieldset id="views-tokens-help"><legend>'.t('Replacement patterns').'</legend>'.$output.'</fieldset></div>', |
|
| 93 | 93 | ); |
| 94 | 94 | |
| 95 | 95 | $form['return'] = array( |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | function privatemsg_views_handlers() { |
| 25 | 25 | return array( |
| 26 | 26 | 'info' => array( |
| 27 | - 'path' => drupal_get_path('module', 'privatemsg') . '/views', |
|
| 27 | + 'path' => drupal_get_path('module', 'privatemsg').'/views', |
|
| 28 | 28 | ), |
| 29 | 29 | 'handlers' => array( |
| 30 | 30 | // field handlers |
@@ -342,7 +342,7 @@ discard block |
||
| 342 | 342 | */ |
| 343 | 343 | function hook_privatemsg_message_view_alter(&$var) { |
| 344 | 344 | // add a link to each message |
| 345 | - $vars['message_links'][] = array('title' => t('My link'), 'href' => '/path/to/my/action/'. $vars['message']['mid']); |
|
| 345 | + $vars['message_links'][] = array('title' => t('My link'), 'href' => '/path/to/my/action/'.$vars['message']['mid']); |
|
| 346 | 346 | } |
| 347 | 347 | |
| 348 | 348 | /** |
@@ -406,7 +406,7 @@ discard block |
||
| 406 | 406 | } |
| 407 | 407 | |
| 408 | 408 | $args = array_merge(array($author->uid), array_keys($recipients)); |
| 409 | - $result = db_query('SELECT recipient FROM {pm_block_user} WHERE author = %d AND recipient IN ('. db_placeholders($recipients) .') GROUP BY recipient', $args); |
|
| 409 | + $result = db_query('SELECT recipient FROM {pm_block_user} WHERE author = %d AND recipient IN ('.db_placeholders($recipients).') GROUP BY recipient', $args); |
|
| 410 | 410 | while ($row = db_fetch_array($result)) { |
| 411 | 411 | $recipient = $recipients[$row['recipient']]; |
| 412 | 412 | // If there's a rule disallowing blocking of this message, send it anyway. |
@@ -458,7 +458,7 @@ discard block |
||
| 458 | 458 | should be displayed automatically in the action form', |
| 459 | 459 | 'callback' => 'privatemsg_thread_change_status', // Function callback that will be executed. |
| 460 | 460 | 'callback arguments' => array('status' => PRIVATEMSG_READ), // Additional arguments to above function |
| 461 | - 'undo callback' => 'privatemsg_thread_change_status', // Provide a function which can "undo" the operation. Optional. |
|
| 461 | + 'undo callback' => 'privatemsg_thread_change_status', // Provide a function which can "undo" the operation. Optional. |
|
| 462 | 462 | 'undo callback arguments' => array('status' => PRIVATEMSG_UNREAD), // Additional arguments to above function. |
| 463 | 463 | ), |
| 464 | 464 | ); |