You are here

function linked_field_token_info in Linked Field 7

Implements hook_token_info().

Provides tokens for the current field item.

File

./linked_field.module, line 55
Main file of Linked Field module.

Code

function linked_field_token_info() {
  $info = array();
  $info['types']['field-item'] = array(
    'name' => t('Field item'),
    'description' => t('Tokens related to delta value of field.'),
    'needs-data' => 'field-item',
  );
  $info['tokens']['field-item']['delta'] = array(
    'name' => t('Field item delta'),
    'description' => t('The delta of this field item.'),
  );
  $info['tokens']['field-item']['raw'] = array(
    'name' => t('Raw item value'),
    'description' => t('The raw value of this field item.'),
  );
  return $info;
}