function fivestar_widget_settings in Fivestar 5
Same name and namespace in other branches
- 6.2 includes/fivestar.field.inc \fivestar_widget_settings()
- 6 fivestar_field.inc \fivestar_widget_settings()
Implementation of hook_widget_settings().
File
- ./
fivestar_field.inc, line 179 - Provides CCK integration for fivestar module
Code
function fivestar_widget_settings($op, $widget) {
switch ($op) {
case 'form':
$form = array();
$form['allow_clear'] = array(
'#type' => 'checkbox',
'#title' => t('Allow user to clear value'),
'#default_value' => isset($widget['allow_clear']) ? $widget['allow_clear'] : 1,
);
return $form;
case 'save':
return array(
'allow_clear',
);
}
}