function agreement_menu in Agreement 6
Same name and namespace in other branches
- 6.2 agreement.module \agreement_menu()
- 7.2 agreement.module \agreement_menu()
Implementation of hook_menu().
File
- ./
agreement.module, line 109 - agreement.module - Agreement module code
Code
function agreement_menu() {
$items = array();
$items['admin/settings/agreement'] = array(
'access arguments' => array(
'configure agreement settings',
),
'description' => 'Configure settings for the Agreement module.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'agreement_settings',
),
'title' => 'Agreement settings',
'type' => MENU_NORMAL_ITEM,
);
$items[check_plain(variable_get('agreement_page_url', AGREEMENT_PAGE_URL))] = array(
'access arguments' => array(
'access content',
),
'description' => 'The agreement page.',
'page callback' => 'agreement_page',
'title' => check_plain(variable_get('agreement_page_title', AGREEMENT_PAGE_TITLE)),
'type' => MENU_CALLBACK,
);
return $items;
}