Révision 74f6bef0
Ajouté par Assos Assos il y a plus de 10 ans
drupal7/sites/all/modules/entity/modules/callbacks.inc | ||
---|---|---|
485 | 485 |
// No data available. |
486 | 486 |
$entity = NULL; |
487 | 487 |
} |
488 |
$instance = $wrapper->getBundle() ? field_info_instance($wrapper->type(), $name, $wrapper->getBundle()) : NULL; |
|
489 |
return (array) module_invoke($field['module'], 'options_list', $field, $instance, $wrapper->type(), $entity); |
|
488 |
|
|
489 |
// Support translating labels via i18n field. |
|
490 |
if (module_exists('i18n_field') && ($translate = i18n_field_type_info($field['type'], 'translate_options'))) { |
|
491 |
return $translate($field); |
|
492 |
} |
|
493 |
else { |
|
494 |
$instance = $wrapper->getBundle() ? field_info_instance($wrapper->type(), $name, $wrapper->getBundle()) : NULL; |
|
495 |
return (array) module_invoke($field['module'], 'options_list', $field, $instance, $wrapper->type(), $entity); |
|
496 |
} |
|
490 | 497 |
} |
491 | 498 |
} |
492 | 499 |
|
Formats disponibles : Unified diff
Weekly update of contrib modules