Révision 5d12d676
Ajouté par Assos Assos il y a environ 6 ans
drupal7/sites/all/modules/views/modules/field/views_handler_filter_field_list.inc | ||
---|---|---|
12 | 12 |
*/ |
13 | 13 |
class views_handler_filter_field_list extends views_handler_filter_many_to_one { |
14 | 14 |
|
15 |
function init(&$view, &$options) { |
|
15 |
/** |
|
16 |
* {@inheritdoc} |
|
17 |
*/ |
|
18 |
public function init(&$view, &$options) { |
|
16 | 19 |
parent::init($view, $options); |
17 |
// Migrate the settings from the old filter_in_operator values to filter_many_to_one. |
|
20 |
// Migrate the settings from the old filter_in_operator values to |
|
21 |
// filter_many_to_one. |
|
18 | 22 |
if ($this->options['operator'] == 'in') { |
19 | 23 |
$this->options['operator'] = 'or'; |
20 | 24 |
} |
... | ... | |
24 | 28 |
$this->operator = $this->options['operator']; |
25 | 29 |
} |
26 | 30 |
|
27 |
|
|
28 |
function get_value_options() { |
|
31 |
/** |
|
32 |
* {@inheritdoc} |
|
33 |
*/ |
|
34 |
public function get_value_options() { |
|
29 | 35 |
$field = field_info_field($this->definition['field_name']); |
30 | 36 |
$this->value_options = list_allowed_values($field); |
31 | 37 |
} |
38 |
|
|
32 | 39 |
} |
Formats disponibles : Unified diff
Weekly update of contrib modules