function colorpicker_elements in Colorpicker 6
Same name and namespace in other branches
- 5 colorpicker.module \colorpicker_elements()
- 6.2 colorpicker.module \colorpicker_elements()
File
- ./
colorpicker.module, line 16 - This module creates a new form element called a 'colorpicker_textfield'.
Code
function colorpicker_elements() {
// A textfield to associate with the Farbtastic colorpicker
$type['colorpicker_textfield'] = array(
'#input' => TRUE,
'#process' => array(
'colorpicker_textfield_process',
),
'#element_validate' => array(
'colorpicker_textfield_validate',
),
);
return $type;
}