You are here

function htaccess_menu in Htaccess 7.2

Same name and namespace in other branches
  1. 7 htaccess.module \htaccess_menu()

Implementation of hook_menu()

File

./htaccess.module, line 39
Htaccess is a module which autogenerates a Drupal root htaccess file based on your settings.

Code

function htaccess_menu() {
  $items = array();
  $items['admin/config/system/htaccess'] = array(
    'title' => t('Htaccess'),
    'description' => t('Configure htaccess.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'htaccess_settings',
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_NORMAL_ITEM,
  );
  $items['admin/config/system/htaccess/main'] = array(
    'title' => t('Settings'),
    'type' => MENU_DEFAULT_LOCAL_TASK,
    'weight' => 10,
  );
  $items['admin/config/system/htaccess/generate'] = array(
    'title' => t('Generate'),
    'description' => t('Generate htaccess.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'htaccess_generate',
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 20,
  );
  $items['admin/config/system/htaccess/deployment'] = array(
    'title' => t('Deployment'),
    'description' => t('Deploy htaccess.'),
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'htaccess_deployment',
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_LOCAL_TASK,
    'weight' => 30,
  );
  $items['admin/config/system/htaccess/deployment/view/%'] = array(
    'page callback' => 'htaccess_display',
    'page arguments' => array(
      6,
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_CALLBACK,
    'weight' => 30,
  );
  $items['admin/config/system/htaccess/deployment/deploy/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'htaccess_confirm_form',
      'deploy',
      6,
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_CALLBACK,
    'weight' => 30,
  );
  $items['admin/config/system/htaccess/deployment/download/%'] = array(
    'page callback' => 'htaccess_download',
    'page arguments' => array(
      6,
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_CALLBACK,
    'weight' => 30,
  );
  $items['admin/config/system/htaccess/deployment/delete/%'] = array(
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'htaccess_confirm_form',
      'delete',
      6,
    ),
    'access arguments' => array(
      'administer htaccess module',
    ),
    'file' => 'htaccess.admin.inc',
    'type' => MENU_CALLBACK,
    'weight' => 30,
  );
  return $items;
}