You are here

function hook_themekey_paths in ThemeKey 7.3

Same name and namespace in other branches
  1. 7 docs/themekey.api.php \hook_themekey_paths()
  2. 7.2 docs/themekey.api.php \hook_themekey_paths()

Functions implementing hook_themekey_paths() set some properties on every page request.

Using this function you directly map parts of the path to property values.

10 functions implement hook_themekey_paths()

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

themekey_blog_themekey_paths in modules/themekey.blog.inc
Implements hook_themekey_paths().
themekey_comment_themekey_paths in modules/themekey.comment.inc
Implements hook_themekey_paths().
themekey_contact_themekey_paths in modules/themekey.contact.inc
Implements hook_themekey_paths().
themekey_example_themekey_paths in themekey_example/themekey_example.module
Implements hook_themekey_paths().
themekey_node_themekey_paths in modules/themekey.node.inc
Implements hook_themekey_paths().

... See full list

1 invocation of hook_themekey_paths()
themekey_rebuild in ./themekey_build.inc
Rebuilds all ThemeKey-related Drupal variables by calling the hooks:

File

docs/themekey.api.php, line 113
ThemeKey API documentation

Code

function hook_themekey_paths() {
  $paths = array();

  // a path like 'example/27/foo will set property example:path_number to '27'
  $paths[] = array(
    'path' => 'example/#example:path_number',
  );
  return $paths;
}