You are here

function hook_view_mode_page_get_entity_patterns in View Mode Page 7.2

Same name and namespace in other branches
  1. 8.2 view_mode_page.api.php \hook_view_mode_page_get_entity_patterns()

Hook called when the results of the get_patterns call is made.

This could be used to inject/change results before they are returned.

Parameters

array $results: DB results of the view_mode_page_get_entity_patterns()

string $entity_type: Entity type passed to view_mode_page_get_entity_patterns()

string $content_type: Content type passed to view_mode_page_get_entity_patterns()

string $view_mode: View mode passed to view_mode_page_get_entity_patterns()

Return value

array Results array

See also

view_mode_page_get_entity_patterns

1 function implements hook_view_mode_page_get_entity_patterns()

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

view_mode_page_view_mode_page_get_entity_patterns in ./view_mode_page.module
Implements hook_view_mode_page_get_entity_patterns().
1 invocation of hook_view_mode_page_get_entity_patterns()
view_mode_page_get_entity_patterns in ./view_mode_page.module
Get URL patterns.

File

./view_mode_page.api.php, line 34

Code

function hook_view_mode_page_get_entity_patterns($results, $entity_type, $content_type, $view_mode) {
  return $results;
}