You are here

function path2ban_menu in path2ban 7.2

Same name and namespace in other branches
  1. 7 path2ban.module \path2ban_menu()

Implements hook_menu().

File

includes/menu.inc, line 11
path2ban menu file.

Code

function path2ban_menu() {
  $menu = array();
  $menu['path2ban/%'] = array(
    'page callback' => 'path2ban_menu_callback',
    'page arguments' => array(
      1,
    ),
    'access callback' => 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;
}