function variable_build_mail_text in Variable 7.2
Same name and namespace in other branches
- 6 variable.variable.inc \variable_build_mail_text()
- 7 variable.variable.inc \variable_build_mail_text()
Build multiple mail variable
2 string references to 'variable_build_mail_text'
- hook_variable_type_info in ./
variable.api.php - Define types of variables or list of values used by a module.
- variable_variable_type_info in ./
variable.variable.inc - Implements hook_variable_type_info().
File
- ./
variable.variable.inc, line 172 - Variable module hook implementations
Code
function variable_build_mail_text($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';
$variable = variable_build_multiple($variable, $options);
return $variable;
}