Commit 218306cc authored by frjo's avatar frjo

#778102: Improvments for contact forms in colorbox by user recrit..

parent 98809b10
......@@ -20,17 +20,17 @@ function colorbox_login() {
function colorbox_form_page($form_id) {
$GLOBALS['devel_shutdown'] = FALSE; // Prevent devel module from spewing.
// Load includes for certain common forms.
switch ($form_id) {
case 'contact_mail_page':
module_load_include('inc', 'contact', 'contact.pages');
print contact_site_page();
break;
default:
$form = drupal_get_form($form_id);
if (!empty($form)) {
print $form;
}
}
$form = drupal_get_form($form_id);
if (!empty($form)) {
print $form;
}
exit;
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment