You are here

function fivestar_field_info in Fivestar 7.2

Same name and namespace in other branches
  1. 5 fivestar_field.inc \fivestar_field_info()
  2. 6.2 includes/fivestar.field.inc \fivestar_field_info()
  3. 6 fivestar_field.inc \fivestar_field_info()

Implements hook_field_info().

File

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

Code

function fivestar_field_info() {
  return array(
    'fivestar' => array(
      'label' => t('Fivestar Rating'),
      'description' => t('Store a rating for this piece of content.'),
      'default_widget' => 'exposed',
      'default_formatter' => 'fivestar_formatter_default',
      'settings' => array(
        'axis' => 'vote',
      ),
      'instance_settings' => array(
        'stars' => 5,
      ),
      'property_type' => 'fivestar',
      'property_callbacks' => array(
        'fivestar_property_info_callback',
      ),
      'microdata' => TRUE,
    ),
  );
}