function l10n_update_menu in Localization update 7
Same name and namespace in other branches
- 6 l10n_update.module \l10n_update_menu()
- 7.2 l10n_update.module \l10n_update_menu()
Implements hook_menu().
File
- ./
l10n_update.module, line 61 - Download translations from remote localization server.
Code
function l10n_update_menu() {
$items['admin/config/regional/translate/update'] = array(
'title' => 'Update',
'description' => 'Available updates',
'page callback' => 'l10n_update_admin_overview',
'access arguments' => array(
'translate interface',
),
'file' => 'l10n_update.admin.inc',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
);
$items['admin/config/regional/language/update'] = array(
'title' => 'Translation updates',
'description' => 'Automatic update configuration',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'l10n_update_admin_settings_form',
),
'access arguments' => array(
'translate interface',
),
'file' => 'l10n_update.admin.inc',
'weight' => 20,
'type' => MENU_LOCAL_TASK,
);
return $items;
}