hook_elements

Definition

hook_elements()
developer/hooks/core.php, line 206

Description

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

Return value

An array of element types

Related topics

Namesort iconDescription
HooksAllow modules to interact with the Drupal core.

Code

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

Drupal is a registered trademark of Dries Buytaert.