You are here

function menu_badges_get_badges in Menu Badges 7

Get all menu badge definitions.

Parameters

$reset:

4 calls to menu_badges_get_badges()
menu_badges_get_badge_options in ./menu_badges.module
Get all menu badge options suitable for a select.
menu_badges_menu_edit_item_submit in ./menu_badges.module
Submit handler for saving menu badge options.
menu_badges_tabs_admin_form in ./menu_badges.admin.inc
Admin form for adding badges to tabs.
menu_badges_tabs_admin_form_submit in ./menu_badges.admin.inc
Submit handler for tabs admin form.

File

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

Code

function menu_badges_get_badges($reset = FALSE) {
  $badges =& drupal_static(__FUNCTION__);
  if (!isset($badges) || $reset) {
    $badges = array();
    $badges += module_invoke_all('menu_badges_options');
    menu_badges_standardize_format($badges);
  }
  return $badges;
}