1 filter.module filter_element_info()

Implements hook_element_info().

See also

filter_process_format()

text_format_wrapper()

File

core/modules/filter/filter.module, line 49
Framework for handling the filtering of content.

Code

function filter_element_info() {
  $type['text_format'] = array(
    // The text format selected by default for this element.
    '#format' => NULL,
    // Whether file uploads are permitted through the editor (if supported).
    // Disable by default, modules must specifically implement saving files as
    // permanent when they save their text data. See filter_entity_insert().
    '#editor_uploads' => FALSE,
    '#process' => array('filter_process_format'),
    '#base_type' => 'textarea',
    '#theme_wrappers' => array('text_format_wrapper'),
  );
  return $type;
}