You are here

function domain_theme_menu in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_theme/domain_theme.module \domain_theme_menu()
  2. 7.3 domain_theme/domain_theme.module \domain_theme_menu()
  3. 7.2 domain_theme/domain_theme.module \domain_theme_menu()

Implement hook_menu()

File

domain_theme/domain_theme.module, line 71
Domain Theme module for the Domain Access module group.

Code

function domain_theme_menu() {
  $items = array();

  // Menu items for configuring themes.
  $items['admin/build/domain/theme/%domain'] = array(
    'title' => 'Domain theme settings',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer domains',
    ),
    'page callback' => 'domain_theme_page',
    'page arguments' => array(
      4,
    ),
    'file' => 'domain_theme.admin.inc',
  );
  $items['admin/build/domain/theme-reset/%domain'] = array(
    'title' => 'Domain theme settings',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer domains',
    ),
    'page callback' => 'domain_theme_reset',
    'page arguments' => array(
      4,
    ),
    'file' => 'domain_theme.admin.inc',
  );
  $items['admin/build/domain/theme/%/%domain/theme-settings'] = array(
    'title' => 'Configure domain theme settings',
    'type' => MENU_CALLBACK,
    'access arguments' => array(
      'administer domains',
    ),
    'page callback' => 'domain_theme_settings',
    'page arguments' => array(
      4,
      5,
    ),
    'file' => 'domain_theme.admin.inc',
  );
  return $items;
}