Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/plugins/views_plugin_row_fields.inc | ||
---|---|---|
2 | 2 |
|
3 | 3 |
/** |
4 | 4 |
* @file |
5 |
* Contains the base row style plugin.
|
|
5 |
* Definition of views_plugin_row_fields.
|
|
6 | 6 |
*/ |
7 | 7 |
|
8 | 8 |
/** |
9 |
* The basic 'fields' row plugin |
|
9 |
* The basic 'fields' row plugin.
|
|
10 | 10 |
* |
11 | 11 |
* This displays fields one after another, giving options for inline |
12 | 12 |
* or not. |
... | ... | |
14 | 14 |
* @ingroup views_row_plugins |
15 | 15 |
*/ |
16 | 16 |
class views_plugin_row_fields extends views_plugin_row { |
17 |
function option_definition() { |
|
17 |
|
|
18 |
/** |
|
19 |
* {@inheritdoc} |
|
20 |
*/ |
|
21 |
public function option_definition() { |
|
18 | 22 |
$options = parent::option_definition(); |
19 | 23 |
|
20 | 24 |
$options['inline'] = array('default' => array()); |
... | ... | |
27 | 31 |
/** |
28 | 32 |
* Provide a form for setting options. |
29 | 33 |
*/ |
30 |
function options_form(&$form, &$form_state) { |
|
34 |
public function options_form(&$form, &$form_state) {
|
|
31 | 35 |
parent::options_form($form, $form_state); |
32 | 36 |
$options = $this->display->handler->get_field_labels(); |
33 | 37 |
|
... | ... | |
80 | 84 |
* Perform any necessary changes to the form values prior to storage. |
81 | 85 |
* There is no need for this function to actually store the data. |
82 | 86 |
*/ |
83 |
function options_submit(&$form, &$form_state) { |
|
87 |
public function options_submit(&$form, &$form_state) {
|
|
84 | 88 |
$form_state['values']['row_options']['inline'] = array_filter($form_state['values']['row_options']['inline']); |
85 | 89 |
} |
90 |
|
|
86 | 91 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules