function views_natural_sort_get_entry_types in Views Natural Sort 7.2
Returns all the entry types used by VNS.
Return value
array Array of arrays defining fields and entities to index. Keyed for easy search like 'node|title' ('entity|field'). array( array( 'entity_type' - string Ex. node 'field ' - string Field name. Lines up with property or field. ), )
3 calls to views_natural_sort_get_entry_types()
- views_natural_sort_entity_insert in ./
views_natural_sort.module - Implements hook_entity_insert().
- views_natural_sort_views_natural_sort_queue_rebuild_data in ./
views_natural_sort.module - Implements hook_views_natural_sort_queue_rebuild_data().
- views_natural_sort_views_natural_sort_queue_rebuild_data_count in ./
views_natural_sort.module - Implements hook_views_natural_sort_queue_rebuild_data_count().
File
- ./
views_natural_sort.module, line 78 - Views Natural Sort module.
Code
function views_natural_sort_get_entry_types() {
$entry_types =& drupal_static(__FUNCTION__, array());
if (empty($entry_types)) {
$data = module_invoke_all('views_natural_sort_get_entry_types');
drupal_alter('views_natural_sort_get_entry_types', $data);
// Rekey so we can do a search more easily for entry types.
foreach ($data as $entry_type) {
$entry_types[$entry_type['entity_type'] . '|' . $entry_type['field']] = $entry_type;
}
}
return $entry_types;
}