You are here

function fivestar_field_formatter_info in Fivestar 5

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

Implementation of hook_field_formatter_info().

File

./fivestar_field.inc, line 232
Provides CCK integration for fivestar module

Code

function fivestar_field_formatter_info() {
  return array(
    'default' => array(
      'label' => t('As Stars'),
      'field types' => array(
        'fivestar',
      ),
    ),
    'rating' => array(
      'label' => t('Rating (i.e. 4.2/5)'),
      'field types' => array(
        'fivestar',
      ),
    ),
    'percentage' => array(
      'label' => t('Percentage (i.e. 92)'),
      'field types' => array(
        'fivestar',
      ),
    ),
  );
}