Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was writing a content type plugin based on the ctools plugin example code, the edit form for my plugin was not displaying anything and later realized that the code produces a warning on:
Warning: Parameter 1 to infomex_solicitudes_content_type_edit_form() expected to be a reference, value given in drupal_retrieve_form() (line 773 of /var/www/Transparencia/includes/form.inc).
So the problem was that the form parameter is not passed by reference. Here is a small patch.
Comment | File | Size | Author |
---|---|---|---|
ctools_plugin_example.patch | 2.9 KB | jackbravo |
Comments
Comment #1
jackbravo CreditAttribution: jackbravo commentedit is just a fix to the ctools plugin example.
Comment #2
merlinofchaos CreditAttribution: merlinofchaos commentedThanks for the patch!