Notice: Undefined index: render element in theme() (line 834 of /Users/gareth/Sites/drupal7dev/includes/theme.inc).
Notice: Undefined index: element in theme_webform_display_email() (line 190 of /Users/gareth/Sites/drupal7dev/sites/all/modules/webform/components/email.inc).
Notice: Undefined index: #format in theme_webform_display_email() (line 193 of /Users/gareth/Sites/drupal7dev/sites/all/modules/webform/components/email.inc).
Error in _webform_theme_email function, does not specify the "render element" attribute so theme_webform_display_email() fails as it the $variables['element'] key never gets named.
This patch replaces the 'arguments' key with an 'element' key, now renders correctly. Is 'arguments' deprecated??
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | webform_display_email.patch | 557 bytes | quicksketch |
| webform-components-email-inc.patch.txt | 587 bytes | garethsprice |
Comments
Comment #1
quicksketchThanks! Committed (after adjusting tabs-to-spaces).
Comment #2
quicksketchYes, if it's a form element you use "render element" (as in this patch), or for normal theme functions it's now called "variables", which works exactly the same.
Comment #4
quicksketch