You are here

function _taxonomy_menu_get_options_by_key in Taxonomy menu 6.3

3 calls to _taxonomy_menu_get_options_by_key()
taxonomy_menu_get_group in ./taxonomy_menu.admin.inc
Get the menu group info
taxonomy_menu_get_menu_groups in ./taxonomy_menu.admin.inc
return an array of menu group objects
taxonomy_menu_get_term_set in ./taxonomy_menu.admin.inc
Get the term set object

File

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

Code

function _taxonomy_menu_get_options_by_key($type, $type_key) {
  $output = array();
  $type_key = strval($type_key);
  $result = db_query("SELECT * FROM {taxonomy_menu_options} WHERE type = '%s' and type_key = '%s'", $type, $type_key);
  while ($data = db_fetch_object($result)) {
    $output[$data->name] = $data;
  }
  return $output;
}