function fivestar_element_info in Fivestar 7.2
Implements hook_elements().
Defines 'fivestar' form element type.
File
- ./
fivestar.module, line 583
Code
function fivestar_element_info() {
$type['fivestar'] = array(
'#input' => TRUE,
'#stars' => 5,
'#allow_clear' => FALSE,
'#allow_revote' => FALSE,
'#allow_ownvote' => FALSE,
'#auto_submit' => FALSE,
'#process' => array(
'fivestar_expand',
),
'#theme_wrappers' => array(
'form_element',
),
'#widget' => array(
'name' => 'default',
'css' => 'default',
),
'#values' => array(
'user' => 0,
'average' => 0,
'count' => 0,
),
'#settings' => array(
'style' => 'user',
'text' => 'none',
),
);
return $type;
}