You are here

function l10n_update_menu in Localization update 7.2

Same name and namespace in other branches
  1. 6 l10n_update.module \l10n_update_menu()
  2. 7 l10n_update.module \l10n_update_menu()

Implements hook_menu().

File

./l10n_update.module, line 126
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' => 'drupal_get_form',
    'page arguments' => array(
      'l10n_update_status_form',
    ),
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'l10n_update.admin.inc',
    'weight' => 20,
    'type' => MENU_LOCAL_TASK,
  );
  $items['admin/config/regional/translate/check'] = array(
    'title' => 'Update',
    'description' => 'Available updates',
    'page callback' => 'l10n_update_manual_status',
    'access arguments' => array(
      'translate interface',
    ),
    'file' => 'l10n_update.admin.inc',
    'weight' => 20,
    'type' => MENU_CALLBACK,
  );
  $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;
}