You are here

function phone_token_values in Phone 7

Same name and namespace in other branches
  1. 6 phone.module \phone_token_values()

Implementation of hook token_values

File

./phone.module, line 282

Code

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