function dynamic_background_elements in Dynamic Background 6
Implementation of hook_elements().
File
- includes/
upload.form.inc, line 14 - The functions here is used to create an new form element (background_upload_form), which can be used to upload images. It also gives the possibility to flag a image for deletion or active background image.
Code
function dynamic_background_elements() {
$types = array();
$types['background_upload_form'] = array(
'#input' => TRUE,
'#process' => array(
'dynamic_background_upload_form_process',
),
'#element_validate' => array(
'dynamic_background_upload_form_validate',
),
);
return $types;
}