You are here

function language_selection_page_menu in Language Selection Page 6

Same name and namespace in other branches
  1. 7.2 language_selection_page.module \language_selection_page_menu()
  2. 7 language_selection_page.module \language_selection_page_menu()

Implements hook_menu().

File

./language_selection_page.module, line 13
The main module page of language_selection_page.

Code

function language_selection_page_menu() {
  $items = array();
  $items['admin/settings/language/i18n/selection_page'] = array(
    'title' => 'Language selection page',
    'description' => 'Configure the language selection page behavior',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'language_selection_page_admin',
    ),
    'access arguments' => array(
      'administer site configuration',
    ),
    'file' => 'language_selection_page.admin.inc',
    'type' => MENU_LOCAL_TASK,
  );
  $items['language_selection'] = array(
    'description' => 'Language selection page',
    'page callback' => 'language_selection_page_selection_page',
    'access arguments' => array(
      'access content',
    ),
    'file' => 'language_selection_page.pages.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  return $items;
}