1 admin_bar.inc admin_bar_links_locale()

Build Locale links.

See also

theme_admin_bar_links()

File

core/modules/admin_bar/admin_bar.inc, line 731
Menu builder functions for Administration bar.

Code

function admin_bar_links_locale() {
  $links['locale'] = array(
    '#title' => theme('admin_bar_icon_locale'),
    '#attributes' => array('class' => array('admin-bar-locale-links')),
  ) + admin_bar_locale_links();

  // Don't display an empty menu.
  $locale_links = element_children($links['locale']);
  if (empty($locale_links)) {
    return array();
  }

  return $links;
}