Closed (fixed)
Project:
Colorbox
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jul 2010 at 20:54 UTC
Updated:
24 Aug 2010 at 13:53 UTC
Hai, I tried to implement this on D7. With a patch to allow other modules form rendered in colorbox.
I got array printed on instead of rendered form. Tried with others forms, same results.
$form = drupal_get_form($form_id);
if (!empty($form)) {
print $form;
}
And this
case 'contact_mail_page':
module_load_include('inc', 'contact', 'contact.pages');
print contact_site_page();
break;
Should be this in D7 :
case 'contact_mail_page':
print (drupal_get_form('contact_site_form'));
break;
Anyone got this array problem? Any solutions or what I did wrong? Thanks.
Comments
Comment #1
sylv3st3r commentedThis fix my problems :
print (drupal_render($form));Comment #2
frjo commentedThanks for finding the bug in my D7 update of Colorbox. Have committed the fix to 7-dev.
This change to drupal_get_form() in D7 is documented here: http://drupal.org/update/modules/6/7#unrendered
Comment #4
BenK commentedJust keeping track of this thread...