You are here

function asset_elements in Asset 6

Same name and namespace in other branches
  1. 5 asset.module \asset_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 text_widget but other widgets can use it (see nodereference and userreference).

File

inc/modules/asset_content.inc, line 77

Code

function asset_elements() {
  $elements = array();
  $elements['textarea'] = array(
    '#input' => TRUE,
    '#columns' => array(
      'value',
    ),
    '#delta' => 0,
    '#process' => array(
      'asset_textarea' => array(),
    ),
  );
  return $elements;
}