function _webform_display_mailchimp in Webform Mailchimp 7
Same name and namespace in other branches
- 6 webform_mailchimp.inc \_webform_display_mailchimp()
- 7.4 webform_mailchimp.inc \_webform_display_mailchimp()
- 7.2 webform_mailchimp.inc \_webform_display_mailchimp()
Implementation of _webform_display_component().
File
- ./
webform_mailchimp.inc, line 250 - Webform module Mailchimp component.
Code
function _webform_display_mailchimp($component, $value, $format = 'html') {
return array(
'#title' => $component['name'],
'#weight' => $component['weight'],
'#theme' => 'webform_display_mailchimp',
'#theme_wrappers' => $format == 'html' ? array(
'webform_element',
) : array(
'webform_element_text',
),
'#format' => $format,
'#value' => isset($value[0]) ? $value[0] : '',
'#webform_component' => $component,
);
}