function jquery_colorpicker_form_alter_common in Jquery Colorpicker 8.2
Helper function, swaps out color field render items with jquery widgets.
2 calls to jquery_colorpicker_form_alter_common()
File
- ./
jquery_colorpicker.module, line 41 - Holds hooks for the JQuery Colorpicker module.
Code
function jquery_colorpicker_form_alter_common(array &$form, FormStateInterface $form_state) {
$form['color']['#type'] = 'jquery_colorpicker';
}