function mee_elements in Scald: Media Management made easy 6
Implementation of FAPI hook_elements().
Any FAPI callbacks needed for individual widgets can be declared here, and the element will be passed to those callbacks for processing.
Drupal will automatically theme the element using a theme with the same name as the hook_elements key.
File
- mee/
mee.module, line 348 - Defines a special textarea, with drag and drop media driven by Scald and dnd.module when rich text editing is enabled on the textarea via the WYSIWYG API.
Code
function mee_elements() {
return array(
'mee_textarea' => array(
'#input' => TRUE,
'#columns' => array(
'value',
'format',
),
'#delta' => 0,
'#process' => array(
'mee_textarea_process',
'dnd_process_textarea',
),
'#filter_value' => FILTER_FORMAT_DEFAULT,
),
);
}