function hook_views_natural_sort_get_entry_types_alter in Views Natural Sort 7.2
Used to alter entry types added by other modules.
Parameters
array $entry_types: Array of arrays defining fields and entities to index array( array( 'entity_type' - string Ex. node 'field ' - string Field name. Lines up with property or field. 'module' - string naming the module that manages indexing. ), )
1 invocation of hook_views_natural_sort_get_entry_types_alter()
- views_natural_sort_get_entry_types in ./
views_natural_sort.module - Returns all the entry types used by VNS.
File
- ./
views_natural_sort.api.php, line 44 - Hook Definition file for Views Natural Sort.
Code
function hook_views_natural_sort_get_entry_types_alter(array &$entry_types) {
foreach ($entry_types as $key => $entry_type) {
// We never naturally sort users, so lets nix em.
if ($entry_type == 'user') {
unset($entry_types[$key]);
}
}
}