You are here

function jquery_colorpicker_cck_elements in Jquery Colorpicker 6.2

Implementation of FAPI hook_elements().

Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.

Drupal will automatically theme the element using a theme with the same name as the hook_elements key.

Includes a regex to check for valid values as an additional parameter the validator can use. The regex can be overridden if necessary.

File

jquery_colorpicker_cck/jquery_colorpicker_cck.module, line 48
This file holds the main Drupal hook functions and private functions for the jquery_colorpicker_cck module.

Code

function jquery_colorpicker_cck_elements() {
  return array(
    'jquery_colorpicker_cck' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'jquery_colorpicker_cck_process',
      ),
    ),
  );
}