You are here

function taxonomy_menu_save_term_set in Taxonomy menu 6.3

Save the Term Set to the database

Parameters

array $record: 'tsid' => termseti id. if blank or 0 then a new term set will be entered 'vid' => vocab id 'name' => diaply name of menu group/termset 'items' => array of term objects for the term set

Return value

$term_set by reference with tsid filled in.

1 call to taxonomy_menu_save_term_set()
taxonomy_menu_term_set_form_submit in ./taxonomy_menu.admin.inc
Submit handler for taxonomy_term_set_form

File

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

Code

function taxonomy_menu_save_term_set(&$term_set) {
  if ($term_set['tsid']) {
    drupal_write_record('taxonomy_menu_term_set', $term_set, 'tsid');
  }
  else {
    drupal_write_record('taxonomy_menu_term_set', $term_set);
  }
}