function themekey_taxonomy_themekey_paths in ThemeKey 6
Same name and namespace in other branches
- 6.4 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
- 6.2 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
- 6.3 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
- 7.3 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
- 7 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
- 7.2 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
File
- modules/
themekey.taxonomy.inc, line 30
Code
function themekey_taxonomy_themekey_paths() {
$paths = array();
$paths[] = array(
'path' => 'taxonomy/term/#taxonomy:tid',
);
// Add support for 'forum' paths
if (module_exists('forum')) {
$paths[] = array(
'path' => 'forum/#taxonomy:vid',
);
}
// Add support for 'taxonomy_menu' paths
if (module_exists('taxonomy_menu')) {
$prefix = variable_get('taxonomy_menu_display_page', 'category');
$paths[] = array(
'path' => $prefix . '/#taxonomy:vid/#taxonomy:tid',
);
for ($i = 1; $i <= MENU_MAX_PARTS - 3; $i++) {
$paths[] = array(
'path' => $prefix . '/#taxonomy:vid/' . implode('/', array_fill(0, $i, '#')) . '/#taxonomy:tid',
);
}
}
return $paths;
}