You are here

function hook_view_mode_page_get_patterns in View Mode Page 7

Same name and namespace in other branches
  1. 8 view_mode_page.api.php \hook_view_mode_page_get_patterns()
  2. 8.2 view_mode_page.api.php \hook_view_mode_page_get_patterns()
  3. 7.2 view_mode_page.api.php \hook_view_mode_page_get_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_patterns():

string $content_type Content type passed to view_mode_page_get_patterns():

string $view_mode View mode passed to view_mode_page_get_patterns():

Return value

array Results array

See also

view_mode_page_get_patterns

1 function implements hook_view_mode_page_get_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_patterns in ./view_mode_page.module
Implements hook_view_mode_page_get_patterns().
1 invocation of hook_view_mode_page_get_patterns()
view_mode_page_get_patterns in ./view_mode_page.module
Get URL patterns.

File

./view_mode_page.api.php, line 14

Code

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