Definition

hook_elements()
docs-5/hooks/core.php, line 213

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;
}
?>