You are here

function field_token_value_field_info in Field Token Value 7

Implements hook_field_info().

File

./field_token_value.module, line 11
Provides a field type allowing the value to be set using tokens.

Code

function field_token_value_field_info() {
  return array(
    'field_token_value' => array(
      'label' => t('Field Token Value'),
      'description' => t('Create a field value with the use of tokens.'),
      'default_widget' => 'field_token_value_default',
      'default_formatter' => 'field_token_value_text',
      'instance_settings' => array(
        'field_value' => '',
        'remove_empty' => TRUE,
      ),
      'property_type' => 'text',
    ),
  );
}