function colorbox_form_page in Colorbox 6
Same name and namespace in other branches
- 7 colorbox.pages.inc \colorbox_form_page()
Menu callback for colorbox_form_page.
1 call to colorbox_form_page()
- colorbox_login in ./
colorbox.pages.inc - Menu callback for colorbox_login.
1 string reference to 'colorbox_form_page'
- colorbox_menu in ./
colorbox.module - Implementation of hook_menu().
File
- ./
colorbox.pages.inc, line 23 - User page callback file for the colorbox module.
Code
function colorbox_form_page($form_id) {
$GLOBALS['devel_shutdown'] = FALSE;
// Prevent devel module from spewing.
switch ($form_id) {
case 'contact_mail_page':
module_load_include('inc', 'contact', 'contact.pages');
print contact_site_page();
break;
case 'user_pass':
module_load_include('inc', 'user', 'user.pages');
default:
$form = drupal_get_form($form_id);
if (!empty($form)) {
print $form;
}
}
exit;
}