You are here

function taxonomy_menu_term_set_delete in Taxonomy menu 6.3

1 call to taxonomy_menu_term_set_delete()
taxonomy_menu_term_set_delete_confirm_submit in ./taxonomy_menu.admin.inc

File

./taxonomy_menu.admin.inc, line 884
admin section for taxonomy menu

Code

function taxonomy_menu_term_set_delete($tsid) {

  // Get all of the Menu Groups for this term set
  $menu_groups = taxonomy_menu_get_menu_group_by_ts($tsid);
  foreach ($menu_groups as $mgid => $menu_group) {

    // Remove the term set from the group.
    taxonomy_menu_group_remove_term_set($mgid, $tsid);
  }

  //delete the menu item options
  _taxonomy_menu_options_delete_by_parent($tsid, 'ITEM');
  db_query('DELETE FROM {taxonomy_menu_term_set WHERE tsid = %d', $tsid);
}