function variable_email_build_mail_html in Variable Email 7
Build multiple mail variable
1 string reference to 'variable_email_build_mail_html'
- variable_email_variable_type_info in ./
variable_email.variable.inc - Implements hook_variable_type_info().
File
- ./
variable_email.variable.inc, line 24 - Variable Email module hook implementations
Code
function variable_email_build_mail_html($variable, $options = array()) {
$name = str_replace('[mail_part]', '', $variable['name']);
// For mail text, children have different types
$variable['children'][$name . 'subject']['type'] = 'string';
$variable['children'][$name . 'body']['type'] = 'text_format';
$variable = variable_build_multiple($variable, $options);
return $variable;
}