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 am getting this PHP notice:
Notice: Undefined index: render element in drupal_find_theme_templates() (line 1378 of /vagrant_sites/roberts.gdg.drupal/includes/theme.inc).
As the documentation for hook_theme() says:
Each information array must contain either a 'variables' element or a 'render element' element, but not both.
But menu_attach_block_theme()
returns an item without either of those. Patch to follow.
Comments
Comment #2
james.williams CreditAttribution: james.williams at ComputerMinds commentedPatch as promised :-)
Comment #4
Cameron Tod CreditAttribution: Cameron Tod as a volunteer and at Acquia commentedGood catch, thanks!