You are here

function taxonomy_menu_get_avaialbe_term_sets in Taxonomy menu 6.3

Get a list of Term Sets that are not assicated with the menu group.

Parameters

$mgid:

Return value

array

File

./taxonomy_menu.database.inc, line 153
Taxonomy Menu functions that access the db

Code

function taxonomy_menu_get_avaialbe_term_sets($mgid) {
  $output = array();
  $result = db_query('SELECT ts.tsid, ts.name FROM {taxonomy_menu_group_term_set} AS tsg
    LEFT JOIN {taxonomy_menu_term_set} AS ts
    ON tsg.tsid = ts.tsid
    WHERE tsg.mgid = %d', $mgid);
  while ($data = db_fetch_object($result)) {
    $output[$data->tsid] = t($data->name);
  }
  return $output;
}