You are here

function hook_themekey_paths in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 docs/themekey.api.php \hook_themekey_paths()
  2. 7 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.

8 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_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().
themekey_og_context_themekey_paths in modules/themekey.og_context.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 ThemeKey's hooks:

File

docs/themekey.api.php, line 114
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;
}