Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: kapep commentedApparently I already did something wrong by misreading the naming conventions. Let's try again.
Comment #2
merlinofchaos CreditAttribution: 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->form
should work?Comment #3
OnkelTem CreditAttribution: OnkelTem commentedSubscribing
Comment #4
MChall CreditAttribution: MChall commentedSubscribing
Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedFixed and pushed this.