function languageicons_menu in Language Icons 6
Same name and namespace in other branches
- 6.2 languageicons.module \languageicons_menu()
- 7 languageicons.module \languageicons_menu()
Implementation of hook_menu().
File
- ./
languageicons.module, line 46 - Icons for language links.
Code
function languageicons_menu() {
// Direct copy of the Configure tab from locale module to
// make space for the "Localization sharing" tab below.
$items['admin/settings/language/configure/language'] = array(
'title' => 'Language negotiation',
'page callback' => 'locale_inc_callback',
'page arguments' => array(
'drupal_get_form',
'locale_languages_configure_form',
),
'access arguments' => array(
'administer languages',
),
'weight' => -10,
'type' => MENU_DEFAULT_LOCAL_TASK,
);
$items['admin/settings/language/configure/icons'] = array(
'title' => 'Icons',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'languageicons_admin_settings',
),
'weight' => 10,
'type' => MENU_LOCAL_TASK,
'access arguments' => array(
'administer languages',
),
'file' => 'languageicons.admin.inc',
);
return $items;
}