function i18nstrings_menu in Internationalization 6
Same name and namespace in other branches
- 5.3 i18nstrings/i18nstrings.module \i18nstrings_menu()
- 5 experimental/i18nstrings.module \i18nstrings_menu()
- 5.2 experimental/i18nstrings.module \i18nstrings_menu()
Implementation of hook_menu().
File
- i18nstrings/
i18nstrings.module, line 95 - Internationalization (i18n) package - translatable strings.
Code
function i18nstrings_menu() {
$items['admin/build/translate/refresh'] = array(
'title' => 'Refresh',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
'page callback' => 'i18nstrings_admin_refresh_page',
'file' => 'i18nstrings.admin.inc',
'access arguments' => array(
'translate interface',
),
);
// 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/strings'] = array(
'title' => 'String translation',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'i18nstrings_admin_settings',
),
'file' => 'i18nstrings.admin.inc',
'access arguments' => array(
'administer filters',
),
);
// AJAX callback path for strings.
$items['i18nstrings/save'] = array(
'title' => 'Save string',
'page callback' => 'i18nstrings_save_string',
'access arguments' => array(
'use on-page translation',
),
'type' => MENU_CALLBACK,
);
return $items;
}