function _taxonomy_menu_update_all_parents in Taxonomy menu 7.2
Same name and namespace in other branches
- 8 taxonomy_menu.module \_taxonomy_menu_update_all_parents()
- 7 taxonomy_menu.module \_taxonomy_menu_update_all_parents()
Update all parent items.
Parameters
$term: The taxonomy term from which to update the parents.
$menu_name: The menu name of the resulting menu links.
1 call to _taxonomy_menu_update_all_parents()
- _taxonomy_menu_nodeapi_helper in ./
taxonomy_menu.module - Abstraction of hook_node_<op>().
File
- ./
taxonomy_menu.module, line 492 - Generates menu links for all selected taxonomy terms.
Code
function _taxonomy_menu_update_all_parents($term, $menu_name) {
$parents = taxonomy_get_parents($term->tid);
if ($parents) {
_taxonomy_menu_save_menu_links_batch($parents, $menu_name);
}
}