function rate_field_info in Rate 7.2
Implements hook_field_info().
File
- ./
rate.module, line 43 - Main module file for the Rate module.
Code
function rate_field_info() {
$settings = array(
'tag' => 'vote',
'roles' => array(),
'allow_voting_by_author' => TRUE,
'noperm_behavior' => RATE_NOPERM_SHOW_DISABLED_WIDGET,
);
return array(
'rate' => array(
'label' => t('Rate widget'),
'description' => t('Rate widget'),
'settings' => $settings,
'default_widget' => 'rate_widget_thumbs_up_down',
'default_formatter' => 'rate_format_full',
),
);
}