function ctools_menu_set_trail_parent in Chaos Tool Suite (ctools) 6
File
- includes/
menu.inc, line 214 - General menu helper functions.
Code
function ctools_menu_set_trail_parent($path) {
$current = menu_get_active_trail();
$keep = array_pop($current);
$trail = ctools_get_menu_trail($path);
$trail[] = $keep;
menu_set_active_trail($trail);
}