function i18n_taxonomy_field_storage_details_alter in Internationalization 7
Implements hook_field_storage_details_alter().
We don't alter the storage details but the stored details of the field itself...
Parameters
array $field: The field record just read from the database.
File
- i18n_taxonomy/
i18n_taxonomy.module, line 318 - i18n taxonomy module
Code
function i18n_taxonomy_field_storage_details_alter(&$details, &$field) {
if ($field['type'] === 'taxonomy_term_reference') {
$field['settings']['options_list_callback'] = 'i18n_taxonomy_allowed_values';
}
}