function fivestar_field_settings_form in Fivestar 7.2
Implements hook_field_settings_form().
File
- includes/
fivestar.field.inc, line 51 - Provides CCK integration for fivestar module.
Code
function fivestar_field_settings_form($field, $instance) {
$form['axis'] = array(
'#type' => 'select',
'#required' => TRUE,
'#title' => 'Voting Tag',
'#options' => fivestar_get_tags(),
'#description' => t('The tag this rating will affect. Enter a property on which that this rating will affect, such as <em>quality</em>, <em>satisfaction</em>, <em>overall</em>, etc.'),
'#default_value' => isset($field['settings']['axis']) ? $field['settings']['axis'] : '',
'#disabled' => field_has_data($field),
);
return $form;
}