1 filter.module | filter_element_info() |
Implements hook_element_info().
See also
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,
// An array of text format names that are displayed. This list is further
// reduced to only those that the currently logged-in user has access.
'#allowed_formats' => array(),
// 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'),
'#description_display' => 'before',
);
return $type;
}