You are here

function dynamic_background_admin_images_add_one in Dynamic Background 7.2

Submit handler for the "add-one-more" button.

It just increments the max counter and causes a rebuild.

2 string references to 'dynamic_background_admin_images_add_one'
dynamic_background_admin_images in includes/backgrounds.admin.inc
The image administation form.
dynamic_background_admin_images_validate in includes/backgrounds.admin.inc
The administration images form validator form. It handles uploading the image and deletion if the checkbox is flaged.

File

includes/backgrounds.admin.inc, line 123
Implementation of the administration image upload and selecton form.

Code

function dynamic_background_admin_images_add_one($form, &$form_state) {
  $form_state['upload_slots']++;
  $form_state['rebuild'] = TRUE;
}