You are here

function taxonomy_menu_get_term_sets in Taxonomy menu 6.3

Get all of the term sets

1 call to taxonomy_menu_get_term_sets()
taxonomy_menu_term_sets in ./taxonomy_menu.admin.inc
Callback for List of Term Sets

File

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

Code

function taxonomy_menu_get_term_sets() {
  $output = array();
  $result = db_query('SELECT tsid FROM {taxonomy_menu_term_set}');
  while ($data = db_fetch_object($result)) {
    $output[$data->tsid] = taxonomy_menu_get_term_set($data->tsid);
  }
  return $output;
}