function themekey_example_themekey_paths in ThemeKey 7
Same name and namespace in other branches
- 7.3 themekey_example/themekey_example.module \themekey_example_themekey_paths()
- 7.2 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;
}