You are here

function phone_token_values in Phone 6

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

Implementation of hook token_values

File

./phone.module, line 998
Defines phone number fields for CCK. Provide some verifications on the phone numbers

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;
  }
}