You are here

function menu_badges_get_badge_options in Menu Badges 7

Get all menu badge options suitable for a select.

2 calls to menu_badges_get_badge_options()
menu_badges_form_menu_edit_item_alter in ./menu_badges.module
Implements hook_form_BASE_FORM_ID_alter().
menu_badges_tabs_admin_form in ./menu_badges.admin.inc
Admin form for adding badges to tabs.

File

./menu_badges.module, line 152
Menu Badges module file.

Code

function menu_badges_get_badge_options() {
  $options = menu_badges_get_badges();
  uasort($options, 'menu_badges_sort_by_module');
  $options = menu_badges_flatten_options($options);
  return $options;
}