Folks,
The upgrading themes and modules to 4.7 pages have been largely helpful.
I'm working on porting the CivicSpace theme (my derivate is a layout) to 4.7
and I've gotten a decent bit done. The FORMS API bit is where I am at.
I used the FormsUpdater to convert the civicspace function
phptemplate_comment_form to 4.7 compatible. (in template.php)
Problem: when I click the add comment link to a node, I now get a new error which
does not look like a form_* related (4.6) error, but it is an error in drupal_get_form().
**
Fatal error: Unsupported operand types in /home/.olympia/editors/bopnetwork.org/includes/form.inc on line 87
**
Here are the last 4 lines of the updated function. It's failing in the call
inside drupal_get_form which much return the form HTML to $output.
~~
$form['#method'] = 'post';
$form['#action'] = url('comment/reply/'. $edit['nid']);
$output = drupal_get_form('comment_form', $form);
return theme('box', $title, $output);
~~
The line in form.inc is within the function drupal_get_form() where the
failure is happening. It is this:
~~
$form += _element_info('form');
~~
Can someone tell me what's going on? I've told the CivicSpace folks that
I will make this work for my site and then hand off the changes/patches
to them for 4.7. Appreciate any help. I can post the whole converted function
here if you want.