You are here

function field_kaltura_elements in Kaltura 6

Same name and namespace in other branches
  1. 5 plugins/field_kaltura/field_kaltura.module \field_kaltura_elements()
  2. 6.2 plugins/field_kaltura/field_kaltura.module \field_kaltura_elements()

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 field_kaltura_widget but other widgets can use it (see nodereference and userreference).

File

plugins/field_kaltura/field_kaltura.module, line 351
kaltura integration module - functions to provide kaltura as CCK field

Code

function field_kaltura_elements() {
  return array(
    'field_kaltura_textfield' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'field_kaltura_textfield_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
    'field_kaltura_remix_textfield' => array(
      '#input' => TRUE,
      '#columns' => array(
        'value',
      ),
      '#delta' => 0,
      '#process' => array(
        'field_kaltura_remix_textfield_process',
      ),
      '#autocomplete_path' => FALSE,
    ),
  );
}