You are here

function _taxonomy_menu_update_all_parents in Taxonomy menu 8

Same name and namespace in other branches
  1. 7.2 taxonomy_menu.module \_taxonomy_menu_update_all_parents()
  2. 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 490
Generates menu links for all selected taxonomy terms.

Code

function _taxonomy_menu_update_all_parents($term, $menu_name) {
  $parents = taxonomy_term_load_parents($term
    ->id());
  if ($parents) {
    _taxonomy_menu_save_menu_links_batch($parents, $menu_name);
  }
}