You are here

function taxonomy_menu_get_menu_groups in Taxonomy menu 6.3

return an array of menu group objects

1 call to taxonomy_menu_get_menu_groups()
taxonomy_menu_group_list in ./taxonomy_menu.admin.inc
page callback for admin/build/taxonomy_menu @TODO Turn this into a theme function

File

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

Code

function taxonomy_menu_get_menu_groups() {
  $output = array();
  $result = db_query('SELECT * FROM {taxonomy_menu_group');
  while ($data = db_fetch_object($result)) {
    $data->items = unserialize($data->items);
    $output[$data->mgid] = $data;
    $output[$data->mgid]->options = _taxonomy_menu_get_options_by_key('GROUP', $data->mgid);
  }
  return $output;
}