function fivestar_field_formatter_info in Fivestar 6.2
Same name and namespace in other branches
- 5 fivestar_field.inc \fivestar_field_formatter_info()
- 6 fivestar_field.inc \fivestar_field_formatter_info()
- 7.2 includes/fivestar.field.inc \fivestar_field_formatter_info()
Implementation of hook_field_formatter_info().
File
- includes/
fivestar.field.inc, line 243 - 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',
),
),
);
}