You are here

function fivestar_field_widget_info in Fivestar 7.2

Implements hook_field_widget_info().

File

includes/fivestar.field.inc, line 225
Provides CCK integration for fivestar module.

Code

function fivestar_field_widget_info() {
  return array(
    'exposed' => array(
      'label' => t('Stars (rated while viewing)'),
      'field types' => array(
        'fivestar',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_NONE,
      ),
    ),
    'stars' => array(
      'label' => t('Stars (rated while editing)'),
      'field types' => array(
        'fivestar',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_NONE,
      ),
      'settings' => array(
        'widget' => array(
          'fivestar_widget' => 'default',
        ),
      ),
    ),
    'fivestar_select' => array(
      'label' => t('Select list (rated while editing)'),
      'field types' => array(
        'fivestar',
      ),
      'behaviors' => array(
        'multiple values' => FIELD_BEHAVIOR_NONE,
      ),
    ),
  );
}