You are here

function variable_mail_build in Variable 6

Build mail variables

1 string reference to 'variable_mail_build'
variable_variable_type_defaults in ./variable.inc
Implementation of hook_variable_form_defaults()

File

./variable.inc, line 142
Variable API module. Extended API.

Code

function variable_mail_build($variable, $options) {
  $build[$variable['name']] = $variable;
  $build[$variable['name'] . '_subject'] = array(
    'parent' => $variable['name'],
    'type' => 'string',
    'title' => t('Subject'),
    'default' => $variable['default']['subject'],
  );
  $build[$variable['name'] . '_body'] = array(
    'parent' => $variable['name'],
    'type' => 'text',
    'title' => t('Body'),
    'default' => $variable['default']['body'],
  );
  return $build;
}