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??

Comments

quicksketch’s picture

Status: Active » Fixed
StatusFileSize
new557 bytes

Thanks! Committed (after adjusting tabs-to-spaces).

quicksketch’s picture

Is 'arguments' deprecated?

Yes, 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

quicksketch’s picture

Version: 7.x-3.x-dev » 7.x-3.0-beta5