You are here

function content_elements in Content Construction Kit (CCK) 6

Same name and namespace in other branches
  1. 6.3 content.module \content_elements()
  2. 6.2 content.module \content_elements()

Hook elements().

Used to add multiple value processing, validation, and themes.

FAPI callbacks can be declared here, and the element will be passed to those callbacks.

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

File

./content.module, line 1815
Allows administrators to associate custom fields to content types.

Code

function content_elements() {
  return array(
    'content_multiple_values' => array(),
    'content_field_view' => array(),
  );
}