You are here

public function UcAddressesDateFieldHandler::getTokenInfo in Ubercart Addresses 7

Overrides UcAddressesFieldHandler::getTokenInfo().

Specifies that tokens of this field are of type 'date'.

Overrides UcAddressesFieldHandler::getTokenInfo

File

handlers/uc_addresses.handlers.inc, line 280
Field handlers for Ubercart Addresses address fields:

Class

UcAddressesDateFieldHandler
Class for the created/modified field.

Code

public function getTokenInfo() {
  $fieldname = $this
    ->getFieldName();
  $tokens = parent::getTokenInfo();
  $tokens[$fieldname] = array(
    'name' => $this
      ->getFieldTitle(),
    'description' => $this
      ->getProperty('description'),
    'type' => 'date',
  );
  return $tokens;
}