function views_natural_sort_text_field_get_entry_types_from_field in Views Natural Sort 7.2
Returns the possible vns entry types from the text field.
Return value
array An array taking on the form expected by hook_views_natural_sort_get_entry_types().
1 call to views_natural_sort_text_field_get_entry_types_from_field()
File
- ./
views_natural_sort_text_field.module, line 83 - The Views Natural Sort Text Field module file.
Code
function views_natural_sort_text_field_get_entry_types_from_field($field) {
$entry_types = array();
foreach ($field['bundles'] as $entity_type => $bundles) {
$entry_types[] = array(
'entity_type' => $entity_type,
'field' => $field['field_name'],
'module' => 'views_natural_sort_text_field',
);
}
return $entry_types;
}