hook_elements

Versions
4.7 – 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

developer/hooks/core.php, line 213

<?php
function hook_elements() {
  $type['filter_format'] = array('#input' => TRUE);
  return $type;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.