You are here

function hook_views_natural_sort_get_entry_types in Views Natural Sort 7.2

Information that tells VNS about entities and properties to index.

Return value

array 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. ), )

2 functions implement hook_views_natural_sort_get_entry_types()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

views_natural_sort_text_field_views_natural_sort_get_entry_types in ./views_natural_sort_text_field.module
Implements hook_views_natural_sort_get_entry_types().
views_natural_sort_views_natural_sort_get_entry_types in ./views_natural_sort.module
Implements hook_views_natural_sort_get_entry_types().
2 invocations of hook_views_natural_sort_get_entry_types()
views_natural_sort_get_entry_types in ./views_natural_sort.module
Returns all the entry types used by VNS.
views_natural_sort_rebuild_index_batch_set in ./views_natural_sort.admin.inc
Sets up the batch job for reindexing all or specified VNS entry types.

File

./views_natural_sort.api.php, line 21
Hook Definition file for Views Natural Sort.

Code

function hook_views_natural_sort_get_entry_types() {
  return array(
    array(
      'entity_type' => 'user',
      'field' => 'book_favorites',
      'module' => 'book_favorites_module',
    ),
  );
}