You are here

function choices_field_info in Poll Improved 7

Implements hook_field_info().

File

modules/choices/choices.module, line 12
Defines simple choices field.

Code

function choices_field_info() {

  //@todo: machine name attrbute for the choice field (delta doesn't work when changing orders afterwards)
  return array(
    'choices' => array(
      'label' => t('Poll choices'),
      'description' => t('This field stores varchar text in the database.'),
      'default_widget' => 'choices_default',
      'default_formatter' => 'choices_default',
    ),
  );
}