You are here

function formatted_number_token_values in Formatted Number 6

Same name and namespace in other branches
  1. 7 includes/formatted_number.token.inc \formatted_number_token_values()

Implementation of hook_token_values().

File

includes/formatted_number.token.inc, line 25
Integration of Formatted Number CCK field with token module.

Code

function formatted_number_token_values($type, $items = NULL) {
  if ($type == 'field') {
    return array(
      'raw' => isset($items[0]['value']) ? $items[0]['value'] : '',
      'formatted' => isset($items[0]['view']) ? $items[0]['view'] : '',
    );
  }
}