You are here

function i18n_menu in Internationalization 6

Same name and namespace in other branches
  1. 5.3 i18n.module \i18n_menu()
  2. 5 i18n.module \i18n_menu()
  3. 5.2 i18n.module \i18n_menu()
  4. 7 i18n.module \i18n_menu()

Implementation of hook_menu().

File

./i18n.module, line 126
Internationalization (i18n) module.

Code

function i18n_menu() {
  $items['admin/settings/language/i18n'] = array(
    'title' => 'Multilingual system',
    'description' => 'Configure extended options for multilingual content and translations.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_admin_settings',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/settings/language/i18n/configure'] = array(
    'title' => 'Options',
    'description' => 'Configure extended options for multilingual content and translations.',
    //'page callback' => 'drupal_get_form',

    //'page arguments' => array('i18n_admin_settings'),

    //'access arguments' => array('administer site configuration'),
    'file' => 'i18n.admin.inc',
    'type' => MENU_DEFAULT_LOCAL_TASK,
  );
  $items['admin/settings/language/i18n/variables'] = array(
    'title' => 'Variables',
    'description' => 'Multilingual variables.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'i18n_admin_variables_form',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'i18n.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );

  // Autocomplete callback for nodes
  $items['i18n/node/autocomplete'] = array(
    'title' => 'Node title autocomplete',
    'page callback' => 'i18n_node_autocomplete',
    'access arguments' => array(
      'access content',
    ),
    'type' => MENU_CALLBACK,
    'file' => 'i18n.pages.inc',
  );
  return $items;
}