You are here

function themekey_taxonomy_themekey_paths in ThemeKey 6.2

Same name and namespace in other branches
  1. 6.4 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
  2. 6 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
  3. 6.3 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
  4. 7.3 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
  5. 7 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()
  6. 7.2 modules/themekey.taxonomy.inc \themekey_taxonomy_themekey_paths()

Implements hook_themekey_paths().

File

modules/themekey.taxonomy.inc, line 62
Provides some taxonomy stuff as ThemeKey properties.

Code

function themekey_taxonomy_themekey_paths() {
  $paths = array();
  $paths[] = array(
    'path' => 'taxonomy/term/#taxonomy:tid',
  );

  // Add support for 'forum' paths
  if (module_exists('forum') && variable_get('themekey_module_forum_triggers_taxonomy_vid', 0)) {
    $paths[] = array(
      'path' => 'forum/#taxonomy:vid',
    );
  }

  // TODO Integration of Taxonomy Menu outdated. See http://drupal.org/node/616946
  //  // Add support for 'taxonomy_menu' paths
  //  if (module_exists('taxonomy_menu') && variable_get('themekey_module_taxonomy_menu_triggers_taxonomy_tid', 0)) {
  //    $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;
}