function helper_get_field_allowed_values in Helper 7
An allowed_values_function callback to fetch list field values from modules.
File
- ./
helper.module, line 319
Code
function helper_get_field_allowed_values($field, $instance, $entity_type, $entity, &$cacheable) {
$hook = $field['field_name'] . '_allowed_values';
$context = array(
'field' => $field,
'instance' => $instance,
'entity_type' => $entity_type,
'entity' => $entity,
'cacheable' => &$cacheable,
);
$options = module_invoke_all($hook, $context);
drupal_alter($hook, $options, $context);
return $options;
}