You are here

function themekey_example_themekey_paths in ThemeKey 7.2

Same name and namespace in other branches
  1. 7.3 themekey_example/themekey_example.module \themekey_example_themekey_paths()
  2. 7 themekey_example/themekey_example.module \themekey_example_themekey_paths()

Implements hook_themekey_paths().

This function sets some properties on every page request.

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

File

themekey_example/themekey_example.module, line 89
ThemeKey Example demonstrates the usage of ThemeKeys API to add more properties to ThemeKey.

Code

function themekey_example_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;
}