hook_elements

  1. drupal
    1. 5
    2. 6
Versions
5 – 6 hook_elements()

Allows modules to declare their own form element types and specify their default values.

Return value

An array of element types

Related topics

Code

documentation/developer/hooks/core.php, line 213

<?php
function hook_elements() {
  $type['filter_format'] = array('#input' => TRUE);
  return $type;
}
?>