You are here

function cck_list_elements in CCK List 6

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.

Autocomplete_path is not used by text_widget but other widgets can use it (see nodereference and userreference).

File

./cck_list.module, line 217
Defines a field type that outputs data in a list.

Code

function cck_list_elements() {
  return array(
    'cck_list' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'cck_list_process',
      ),
    ),
  );
}