function fivestar_field_formatter_info in Fivestar 5
Same name and namespace in other branches
- 6.2 includes/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
- ./
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',
),
),
);
}