You are here

function taxonomy_menu_group_table in Taxonomy menu 6.3

Formats the list of Term Sets for a given Menu Group

Parameters

object $term_sets:

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

File

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

Code

function taxonomy_menu_group_table($menu_groups, &$rows) {
  if ($menu_groups) {
    foreach ($menu_groups as $menu_group) {
      $rows[] = array(
        '-Menu Group: ' . check_plain($menu_group->name),
        l(t('Edit'), TAXONOMY_MENU_BASE_PATH . 'group/' . $menu_group->mgid . '/edit'),
      );
    }
  }
  else {
    $rows[] = array(
      t('No Menu Groups for Term Set'),
    );
  }
}