You are here

function domain_prefix_menu in Domain Access 6.2

Same name and namespace in other branches
  1. 5 domain_prefix/domain_prefix.module \domain_prefix_menu()

Implement hook_menu()

File

domain_prefix/domain_prefix.module, line 81
Interface for selective table prefixing for use with Domain Access.

Code

function domain_prefix_menu() {
  $items = array();
  $items['admin/build/domain/prefix'] = array(
    'title' => 'Table prefixing',
    'type' => MENU_LOCAL_TASK,
    'access arguments' => array(
      'administer table prefixing',
    ),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'domain_prefix_configure_form',
    ),
    'file' => 'domain_prefix.admin.inc',
  );
  $items['admin/build/domain/prefix/%domain'] = array(
    'title' => 'Domain prefix settings',
    'access arguments' => array(
      'administer table prefixing',
    ),
    'type' => MENU_CALLBACK,
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'domain_prefix_form',
      4,
    ),
    'file' => 'domain_prefix.admin.inc',
  );
  $items['domain_prefix_update'] = array(
    'title' => 'Domain prefix update',
    'access arguments' => array(
      'administer table prefixing',
    ),
    'type' => MENU_CALLBACK,
    'page callback' => 'domain_prefix_update',
    'file' => 'domain_prefix.admin.inc',
  );
  return $items;
}