You are here

function domain_locale_menu in Domain Locale 7

Same name and namespace in other branches
  1. 6 domain_locale.module \domain_locale_menu()

Implements hook_menu().

Domain Locale only provides administrative menu items.

File

./domain_locale.module, line 431
Provides domain specific language settings.

Code

function domain_locale_menu() {
  $items = array();
  $admin_file = 'domain_locale.admin.inc';
  $admin_access_args = array(
    'administer domains',
  );

  // Menu items for configuring languages.
  $items['admin/structure/domain/view/%domain/language'] = array(
    'title' => 'Languages',
    'type' => MENU_LOCAL_TASK,
    'page callback' => 'domain_locale',
    'page arguments' => array(
      4,
    ),
    'access arguments' => $admin_access_args,
    'file' => $admin_file,
  );
  $items['admin/structure/domain/view/%domain/language-reset'] = array(
    'title' => 'Domain language settings',
    'type' => MENU_VISIBLE_IN_BREADCRUMB,
    'page callback' => 'domain_locale_reset',
    'page arguments' => array(
      4,
    ),
    'access arguments' => $admin_access_args,
    'file' => $admin_file,
  );
  return $items;
}