function i18n_string_menu in Internationalization 7
Implements hook_menu().
File
- i18n_string/
i18n_string.module, line 110 - Internationalization (i18n) package - translatable strings.
Code
function i18n_string_menu() {
$items['admin/config/regional/translate/i18n_string'] = array(
'title' => 'Strings',
'description' => 'Refresh user defined strings.',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'i18n_string_admin_refresh_form',
),
'file' => 'i18n_string.admin.inc',
'access arguments' => array(
'translate interface',
),
);
$items['admin/config/regional/i18n/strings'] = array(
'title' => 'Strings',
'description' => 'Options for user defined strings.',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
'page callback' => 'drupal_get_form',
'page arguments' => array(
'variable_edit_form',
array(
'i18n_string_allowed_formats',
'i18n_string_source_language',
'i18n_string_textgroup_class_[textgroup]',
),
),
'access arguments' => array(
'administer site configuration',
),
);
// AJAX callback path for strings.
$items['i18n_string/save'] = array(
'title' => 'Save string',
'page callback' => 'i18n_string_l10n_client_save_string',
'access arguments' => array(
'use on-page translation',
),
'file' => 'i18n_string.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}