You are here

function hook_taxonomy_menu_path in Taxonomy menu 7.2

Same name and namespace in other branches
  1. 8 taxonomy_menu.api.php \hook_taxonomy_menu_path()

Allows modules to register new types of path to be used as taxonomy menu links.

Return value

array An array of types of path, defined by a callback and a label.

2 functions implement hook_taxonomy_menu_path()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

taxonomy_menu_custom_paths_taxonomy_menu_path in taxonomy_menu_custom_paths/taxonomy_menu_custom_paths.module
Implements hook_taxonomy_menu_path().
taxonomy_menu_taxonomy_menu_path in ./taxonomy_menu.module
Implements hook_taxonomy_menu_path().
1 invocation of hook_taxonomy_menu_path()
taxonomy_menu_get_paths in ./taxonomy_menu.module
Creates the path to use in a menu item.

File

./taxonomy_menu.api.php, line 48
This file contains no working PHP code; it exists to document hooks in the standard Drupal manner.

Code

function hook_taxonomy_menu_path() {

  // Example from the sub-module "custom paths".
  $paths = array(
    'taxonomy_menu_path_custom' => t('Custom (<base_path>/%)'),
  );
  return $paths;
}