Révision 59e46405
Ajouté par Assos Assos il y a plus de 7 ans
drupal7/sites/all/modules/entity/views/handlers/entity_views_field_handler_helper.inc | ||
---|---|---|
18 | 18 |
* Provide appropriate default options for a handler. |
19 | 19 |
*/ |
20 | 20 |
public static function option_definition($handler) { |
21 |
if (entity_property_list_extract_type($handler->definition['type'])) { |
|
21 |
if (isset($handler->definition['type']) && entity_property_list_extract_type($handler->definition['type'])) {
|
|
22 | 22 |
$options['list']['contains']['mode'] = array('default' => 'collapse'); |
23 | 23 |
$options['list']['contains']['separator'] = array('default' => ', '); |
24 | 24 |
$options['list']['contains']['type'] = array('default' => 'ul'); |
... | ... | |
32 | 32 |
* Provide an appropriate default option form for a handler. |
33 | 33 |
*/ |
34 | 34 |
public static function options_form($handler, &$form, &$form_state) { |
35 |
if (entity_property_list_extract_type($handler->definition['type'])) { |
|
35 |
if (isset($handler->definition['type']) && entity_property_list_extract_type($handler->definition['type'])) {
|
|
36 | 36 |
$form['list']['mode'] = array( |
37 | 37 |
'#type' => 'select', |
38 | 38 |
'#title' => t('List handling'), |
Formats disponibles : Unified diff
Weekly update of contrib modules