function themekey_path_set in ThemeKey 7.3
Same name and namespace in other branches
- 6.4 themekey_build.inc \themekey_path_set()
- 6.2 themekey_build.inc \themekey_path_set()
- 6.3 themekey_build.inc \themekey_path_set()
- 7 themekey_build.inc \themekey_path_set()
- 7.2 themekey_build.inc \themekey_path_set()
Examines ThemeKey paths created by modules via hook_themekey_paths() in database and assigns a fit factor and a weight.
Parameters
$item: reference to an associative array containing a ThemeKey path structure
See also
1 string reference to 'themekey_path_set'
- themekey_rebuild in ./
themekey_build.inc - Rebuilds all ThemeKey-related Drupal variables by calling the hooks:
File
- ./
themekey_build.inc, line 194 - The functions in this file are the back end of ThemeKey which should be used only if you configure something, but not when ThemeKey switches themes.
Code
function themekey_path_set(&$item) {
$item['callbacks'] = isset($item['callbacks']) && !empty($item['callbacks']) ? $item['callbacks'] : array();
list($item['fit'], $item['weight'], $item['wildcards']) = themekey_prepare_path($item['path']);
}