You are here

function user_variable_mail_default in Variable 7.2

Same name and namespace in other branches
  1. 7 includes/user.variable.inc \user_variable_mail_default()

Default callback for user mail variables

1 string reference to 'user_variable_mail_default'
user_variable_type_info in includes/user.variable.inc
Implements hook_variable_type_info().

File

includes/user.variable.inc, line 200
Variable API module. Definition for Drupal core variables

Code

function user_variable_mail_default($variable, $options) {

  // Remove 'user_mail_' prefix
  $name = substr($variable['name'], 10);
  return _user_mail_text($name, $options['language']);
}