You are here

function vud_field_field_info in Vote Up/Down 7

Same name and namespace in other branches
  1. 7.2 vud_field/vud_field.module \vud_field_field_info()

Implements hook_field_info().

File

vud_field/vud_field.module, line 11
Defines field type which contains a voting widget.

Code

function vud_field_field_info() {
  return array(
    'vud_field' => array(
      'label' => t('Vote Up/Down'),
      'description' => t('A voting widget.'),
      'settings' => array(
        'vud_widget' => 'updown',
        'votingapi_tag' => 'vote',
      ),
      'instance_settings' => array(
        'vud_widget' => 'updown',
        'votingapi_tag' => 'vote',
      ),
      'default_widget' => 'vud_field_default_widget',
      'default_formatter' => 'default',
    ),
  );
}