You are here

function isbn_token_values in ISBN Field 6

Implementation of hook_token_values().

File

./isbn.module, line 557
Defines ISBN field types.

Code

function isbn_token_values($type, $object = NULL) {
  if ($type == 'field') {
    $item = $object[0];
    $tokens['raw'] = $item['isbn'];
    $tokens['formatted'] = isset($item['view']) ? $item['view'] : '';
    return $tokens;
  }
}