When enabling "Node add/edit form" page template, the edit page is not shown, instead an error message appears:
Fatal error: Call to undefined function drupal_render_form()
It is caused by ctools\page_manager\plugins\tasks\node_edit.inc which calls an old drupal 6 function.
Using drupal_build_form() instead works - at least when no actual page variant is used, because panels also does call drupal_render_form. I'll make a patch for that later if there isn't any.
It's my first patch, please tell me if I did anything wrong.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | ctools-node-edit-959016-1.patch | 869 bytes | kapep |
| node-edit-page.patch | 886 bytes | kapep |
Comments
Comment #1
kapep commentedApparently I already did something wrong by misreading the naming conventions. Let's try again.
Comment #2
merlinofchaos commentedI'm not sure this is right; the comment makes me think that using drupal_build_form() will mess up the IDs. In D7, we don't actually need to render the form at all. Maybe just
$output = $context->formshould work?Comment #3
OnkelTem commentedSubscribing
Comment #4
MChall commentedSubscribing
Comment #5
merlinofchaos commentedFixed and pushed this.