function modal_forms_menu in Modal forms (with ctools) 6
Same name and namespace in other branches
- 7 modal_forms.module \modal_forms_menu()
Implements hook_menu().
File
- ./
modal_forms.module, line 31 - Modal Forms allows you to activate a Ctools based ajax modal on common Drupal forms
Code
function modal_forms_menu() {
$items['admin/settings/modal_forms'] = array(
'title' => 'Modal forms',
'description' => 'Adjust Modal forms settings.',
'page callback' => 'drupal_get_form',
'page arguments' => array(
'modal_forms_admin_settings',
),
'access arguments' => array(
'administer site configuration',
),
'file' => 'modal_forms.admin.inc',
);
$items['modal_forms/%ctools_js/login'] = array(
'title' => 'Log in',
'page callback' => 'modal_forms_login',
'page arguments' => array(
1,
),
'access callback' => TRUE,
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/register'] = array(
'title' => 'Register',
'page callback' => 'modal_forms_register',
'page arguments' => array(
1,
),
'access callback' => 'user_register_access',
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/password'] = array(
'title' => 'Password',
'page callback' => 'modal_forms_password',
'page arguments' => array(
1,
),
'access callback' => 'user_is_anonymous',
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/contact'] = array(
'title' => 'Contact',
'page callback' => 'modal_forms_contact',
'page arguments' => array(
1,
),
'access arguments' => array(
'access site-wide contact form',
),
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}