You are here

function email_token_values in Email Field 5

Same name and namespace in other branches
  1. 6.2 email.module \email_token_values()
  2. 6 email.module \email_token_values()

Implementation of hook token_values

File

./email.module, line 374

Code

function email_token_values($type, $object = NULL, $options = array()) {
  if ($type == 'field') {
    $item = $object[0];
    $tokens['email'] = check_plain($item['email']);
    return $tokens;
  }
}