function modal_forms_menu in Modal forms (with ctools) 7
Same name and namespace in other branches
- 6 modal_forms.module \modal_forms_menu()
Implements hook_menu().
File
- ./
modal_forms.module, line 25 - Main file for the Modal Forms.
Code
function modal_forms_menu() {
$items['admin/config/development/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' => 'user_is_anonymous',
'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,
);
$items['modal_forms/%ctools_js/user/%user/contact'] = array(
'title' => 'Contact',
'page callback' => 'modal_forms_personal_contact',
'page arguments' => array(
3,
1,
),
'access arguments' => array(
'access user contact forms',
),
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/comment/reply/%node'] = array(
'title' => 'Comment',
'page callback' => 'modal_forms_comment_reply',
'page arguments' => array(
4,
1,
),
'access arguments' => array(
'post comments',
),
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/webform/%node'] = array(
'title' => 'Webform',
'page callback' => 'modal_forms_view_webform',
'page arguments' => array(
3,
1,
),
'access callback' => 'node_access',
'access arguments' => array(
'view',
3,
),
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
$items['modal_forms/%ctools_js/dismiss'] = array(
'title' => 'Dismiss',
'page callback' => 'modal_forms_dismiss',
'page arguments' => array(
1,
),
// JS to ajax_render.
'access callback' => TRUE,
'file' => 'modal_forms.pages.inc',
'type' => MENU_CALLBACK,
);
return $items;
}