@@ -72,8 +72,7 @@ discard block |
||
72 | 72 | $output = $form_state['output']; |
73 | 73 | } |
74 | 74 | return $output; |
75 | - } |
|
76 | - else { |
|
75 | + } else { |
|
77 | 76 | return t('There are no views to be exported at this time.'); |
78 | 77 | } |
79 | 78 | } |
@@ -165,8 +164,7 @@ discard block |
||
165 | 164 | $tags = $form_state['values']['tags']; |
166 | 165 | if ($tags) { |
167 | 166 | drupal_goto('admin/build/views/tools/export', array('tags' => implode(',', $tags))); |
168 | - } |
|
169 | - else { |
|
167 | + } else { |
|
170 | 168 | drupal_goto('admin/build/views/tools/export'); |
171 | 169 | } |
172 | 170 | } |
@@ -62,8 +62,7 @@ |
||
62 | 62 | |
63 | 63 | if ($this->options['link_display'] == 'icon') { |
64 | 64 | return l(theme('image', 'misc/forum-new.png'), 'user/'. $account->uid .'/contact', array('html' => TRUE, 'attributes' => array('title' => t('Contact %user', array('%user' => $account->name))))); |
65 | - } |
|
66 | - else { |
|
65 | + } else { |
|
67 | 66 | return l($this->options['text'], 'user/'. $account->uid .'/contact', array('attributes' => array('title' => t('Contact %user', array('%user' => $account->name))))); |
68 | 67 | } |
69 | 68 | } |
@@ -485,8 +485,7 @@ |
||
485 | 485 | } |
486 | 486 | if ($argument->options['use_taxonomy_term_path']) { |
487 | 487 | $path = taxonomy_term_path($parent); |
488 | - } |
|
489 | - else { |
|
488 | + } else { |
|
490 | 489 | $args[$argument->position] = $parent->tid; |
491 | 490 | $path = $argument->view->get_url($args); |
492 | 491 | } |
@@ -27,8 +27,7 @@ |
||
27 | 27 | $output = node_get_types('name', $type); |
28 | 28 | if (empty($output)) { |
29 | 29 | return t('Unknown node type'); |
30 | - } |
|
31 | - else { |
|
30 | + } else { |
|
32 | 31 | return check_plain(t($output)); |
33 | 32 | } |
34 | 33 | } |
@@ -17,8 +17,7 @@ |
||
17 | 17 | if (!empty($form_state['exposed'])) { |
18 | 18 | if (isset($this->options['expose']['label'])) { |
19 | 19 | $label = $this->options['expose']['label']; |
20 | - } |
|
21 | - else { |
|
20 | + } else { |
|
22 | 21 | $label = t('Has new content'); |
23 | 22 | } |
24 | 23 | $form['value'] = array( |
@@ -54,13 +54,11 @@ |
||
54 | 54 | $languages = language_list(); |
55 | 55 | if (isset($languages[$values->{$this->aliases['language']}])) { |
56 | 56 | $this->options['alter']['language'] = $languages[$values->{$this->aliases['language']}]; |
57 | - } |
|
58 | - else { |
|
57 | + } else { |
|
59 | 58 | unset($this->options['alter']['language']); |
60 | 59 | } |
61 | 60 | } |
62 | - } |
|
63 | - else { |
|
61 | + } else { |
|
64 | 62 | $this->options['alter']['make_link'] = FALSE; |
65 | 63 | } |
66 | 64 | } |
@@ -45,8 +45,7 @@ |
||
45 | 45 | $options[$key] = $value['title']; |
46 | 46 | } |
47 | 47 | } |
48 | - } |
|
49 | - else { |
|
48 | + } else { |
|
50 | 49 | $options = array( |
51 | 50 | 'teaser' => t('Teaser'), |
52 | 51 | 'full' => t('Full node') |
@@ -65,8 +65,7 @@ discard block |
||
65 | 65 | // Filter and prepare node teaser |
66 | 66 | if (node_hook($node, 'view')) { |
67 | 67 | $node = node_invoke($node, 'view', $teaser, FALSE); |
68 | - } |
|
69 | - else { |
|
68 | + } else { |
|
70 | 69 | $node = node_prepare($node, $teaser); |
71 | 70 | } |
72 | 71 | |
@@ -80,8 +79,7 @@ discard block |
||
80 | 79 | if ($teaser) { |
81 | 80 | $node->teaser = $content; |
82 | 81 | unset($node->body); |
83 | - } |
|
84 | - else { |
|
82 | + } else { |
|
85 | 83 | $node->body = $content; |
86 | 84 | unset($node->teaser); |
87 | 85 | } |
@@ -49,8 +49,7 @@ |
||
49 | 49 | $this->options['alter']['language'] = $languages[$values->{$this->aliases['language']}]; |
50 | 50 | } |
51 | 51 | } |
52 | - } |
|
53 | - else { |
|
52 | + } else { |
|
54 | 53 | return parent::render_link($data, $values); |
55 | 54 | } |
56 | 55 | return $data; |