Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/plugins/views_plugin_style_summary_jump_menu.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Contains the default summary style plugin, which displays items in an HTML list.
|
|
5 |
* Definition of views_plugin_style_summary_jump_menu.
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
/** |
... | ... | |
11 | 11 |
* @ingroup views_style_plugins |
12 | 12 |
*/ |
13 | 13 |
class views_plugin_style_summary_jump_menu extends views_plugin_style { |
14 |
function option_definition() { |
|
14 |
|
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function option_definition() { |
|
15 | 19 |
$options = parent::option_definition(); |
16 | 20 |
|
17 | 21 |
$options['base_path'] = array('default' => ''); |
... | ... | |
26 | 30 |
return $options; |
27 | 31 |
} |
28 | 32 |
|
29 |
function query() { |
|
33 |
/** |
|
34 |
* {@inheritdoc} |
|
35 |
*/ |
|
36 |
public function query() { |
|
30 | 37 |
// Copy the offset option. |
31 | 38 |
$pager = array( |
32 | 39 |
'type' => 'none', |
... | ... | |
35 | 42 |
$this->display->handler->set_option('pager', $pager); |
36 | 43 |
} |
37 | 44 |
|
38 |
function options_form(&$form, &$form_state) { |
|
45 |
/** |
|
46 |
* {@inheritdoc} |
|
47 |
*/ |
|
48 |
public function options_form(&$form, &$form_state) { |
|
39 | 49 |
$form['base_path'] = array( |
40 | 50 |
'#type' => 'textfield', |
41 | 51 |
'#title' => t('Base path'), |
... | ... | |
93 | 103 |
); |
94 | 104 |
} |
95 | 105 |
|
96 |
function render() { |
|
106 |
/** |
|
107 |
* {@inheritdoc} |
|
108 |
*/ |
|
109 |
public function render() { |
|
97 | 110 |
$argument = $this->view->argument[$this->view->build_info['summary_level']]; |
98 | 111 |
|
99 | 112 |
$url_options = array(); |
... | ... | |
143 | 156 |
$form = drupal_get_form('ctools_jump_menu', $options, $settings); |
144 | 157 |
return drupal_render($form); |
145 | 158 |
} |
159 |
|
|
146 | 160 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules