You are here

function views_natural_sort_views_natural_sort_get_entry_types in Views Natural Sort 7.2

Same name and namespace in other branches
  1. 8.2 views_natural_sort.module \views_natural_sort_views_natural_sort_get_entry_types()

Implements hook_views_natural_sort_get_entry_types().

File

./views_natural_sort.module, line 94
Views Natural Sort module.

Code

function views_natural_sort_views_natural_sort_get_entry_types() {
  $supported_entity_properties = views_natural_sort_get_views_configurable_properties();
  $entry_types = array();
  foreach ($supported_entity_properties as $entity_type => $properties) {
    foreach ($properties as $property => $schema_info) {
      $entry_types[] = array(
        'entity_type' => $entity_type,
        'field' => $property,
        'module' => 'views_natural_sort',
      );
    }
  }
  return $entry_types;
}