function view_mode_page_get_entity_types in View Mode Page 7.2
Same name and namespace in other branches
- 8.2 view_mode_page.module \view_mode_page_get_entity_types()
Returns all the entity types that exist for VMP
Return value
array Array of entity types used by VMPs
2 calls to view_mode_page_get_entity_types()
- view_mode_page_form_alter in ./
view_mode_page.module - Implements hook_page_alter().
- view_mode_page_permission in ./
view_mode_page.module - Implements hook_permission().
File
- ./
view_mode_page.module, line 661 - View Mode Page module allows users to add a page for a specific view mode.
Code
function view_mode_page_get_entity_types() {
$entity_types =& drupal_static(__FUNCTION__);
if (!isset($entity_types)) {
$all_entity_types = entity_get_info();
$entity_types = array_keys($all_entity_types);
$entity_types = module_invoke_all('view_mode_page_get_entity_types', $entity_types);
}
return $entity_types;
}