Commit 30877a41 authored by frjo's avatar frjo
Browse files

Fix open form feature for contact and user register.

parent 4151f557
......@@ -108,10 +108,10 @@ function colorbox_menu() {
*/
function _colorbox_form_page_access($form_id) {
switch ($form_id) {
case 'contact_mail_page':
case 'contact_site_form':
$access = user_access('access site-wide contact form');
break;
case 'user_register':
case 'user_register_form':
$access = user_register_access();
break;
case 'user_pass':
......
......@@ -21,10 +21,10 @@ function colorbox_form_page($form_id) {
$GLOBALS['devel_shutdown'] = FALSE; // Prevent devel module from spewing.
switch ($form_id) {
case 'contact_mail_page':
case 'contact_site_form':
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)) {
......
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