function entity_token_types in Entity API 7
Defines the types of properties to be added as token.
Return value
array An array mapping token types to the usual (entity) type names.
1 call to entity_token_types()
- _entity_token_map_to_token_type in ./
entity_token.tokens.inc - Gets the right token type for a given property info array.
File
- ./
entity_token.tokens.inc, line 14 - Provides tokens for entity properties which have no token yet.
Code
function entity_token_types() {
$return = entity_token_types_chained();
return $return + drupal_map_assoc(array(
'text',
'integer',
'decimal',
'duration',
'boolean',
'uri',
));
}