You are here

function dynamic_background_element_info in Dynamic Background 7.2

Same name and namespace in other branches
  1. 7 includes/upload.form.inc \dynamic_background_element_info()

Implements hook_elements().

File

includes/upload.form.inc, line 12
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_element_info() {
  $types = array();
  $types['background_upload_form'] = array(
    '#input' => TRUE,
    '#theme' => array(
      'background_upload_form',
    ),
    '#theme_wrappers' => array(
      'form_element',
    ),
    '#process' => array(
      'dynamic_background_upload_form_process',
    ),
    '#element_validate' => array(
      'dynamic_background_upload_form_validate',
    ),
  );
  return $types;
}