function fivestar_elements in Fivestar 6.2
Same name and namespace in other branches
- 5 fivestar.module \fivestar_elements()
- 6 fivestar.module \fivestar_elements()
Implementation of hook_elements().
Defines 'fivestar' form element type
File
- ./
fivestar.module, line 988 - A simple n-star voting widget, usable in other forms.
Code
function fivestar_elements() {
$type['fivestar'] = array(
'#input' => TRUE,
'#stars' => 5,
'#widget' => 'stars',
'#allow_clear' => FALSE,
'#auto_submit' => FALSE,
'#auto_submit_path' => '',
'#labels_enable' => TRUE,
'#feedback_enable' => TRUE,
'#process' => array(
'fivestar_expand',
),
);
return $type;
}