You are here

function party_hat_menu in Party 8.2

Same name and namespace in other branches
  1. 7 modules/party_hat/party_hat.module \party_hat_menu()

Implements hook_menu().

File

modules/party_hat/party_hat.module, line 10
party_hat.module Provides an extensible access system for parties.

Code

function party_hat_menu() {

  // Extend the normal party/add page to accept random arguments.
  $items['party/add/%'] = array(
    'title callback' => 'party_hat_party_add_title',
    'title arguments' => array(
      2,
    ),
    'page callback' => 'party_hat_party_add_form_wrapper',
    'page arguments' => array(
      2,
    ),
    'file' => 'party_hat.pages.inc',
    'access arguments' => array(
      'create parties',
    ),
  );
  return $items;
}