You are here

function path2ban_menu in path2ban 7

Same name and namespace in other branches
  1. 7.2 includes/menu.inc \path2ban_menu()

Implements hook_menu().

File

./path2ban.module, line 74
path2ban module.

Code

function path2ban_menu() {
  $menu = array();
  $menu['path2ban/%'] = array(
    'page callback' => 'path2ban_pitfall',
    'page arguments' => array(
      1,
    ),
    'access callback' => TRUE,
    //'access arguments' => array('access content'), // TRUE - проверить
    'type' => MENU_CALLBACK,
  );
  $menu['admin/config/people/path2ban'] = array(
    'title' => 'path2ban',
    'description' => 'Ban IP of visitors, who try to scan restricted paths.',
    'page callback' => 'drupal_get_form',
    'page arguments' => array(
      'path2ban_settings',
    ),
    'access arguments' => array(
      'administer path2ban',
    ),
    'type' => MENU_NORMAL_ITEM,
  );
  return $menu;
}