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

sylv3st3r’s picture

This fix my problems :
print (drupal_render($form));

frjo’s picture

Status: Active » Fixed

Thanks 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

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

BenK’s picture

Just keeping track of this thread...