You are here

function hook_menu_trail_by_path_parent_candidates_alter in Menu Trail By Path 7.2

Same name and namespace in other branches
  1. 7.3 menu_trail_by_path.api.php \hook_menu_trail_by_path_parent_candidates_alter()

Alter the parent candidates before breadcrumb is set.

Parameters

string $path: Path string. e.g. 'foo/bar/zee'.

array $parent_candidates: Array of breadcrumb parent candidates.

1 invocation of hook_menu_trail_by_path_parent_candidates_alter()
_menu_trail_by_path_get_parent_candidates in ./menu_trail_by_path.module
Returns an array of parent candidates

File

./menu_trail_by_path.api.php, line 20
Hooks provided by the Menu Trail By Path module.

Code

function hook_menu_trail_by_path_parent_candidates_alter($path, &$parent_candidates) {

  // Alter parent candidates here.
}