function insert_element_info in Insert 7
Implements hook_element_info().
File
- ./
insert.module, line 32 - Allows insertion of files, images, and other media directly into the body field by using an "Insert" button next to the uploaded file.
Code
function insert_element_info() {
$extra = array(
'#after_build' => array(
'insert_element_process',
),
);
$elements = array();
foreach (insert_widgets() as $widget_type => $widget) {
$element_type = isset($widget['element_type']) ? $widget['element_type'] : $widget_type;
$elements[$element_type] = $extra;
}
return $elements;
}