You are here

function email_token_values in Email Field 6

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

Implementation of hook token_values

File

./email.module, line 460

Code

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