You are here

function _elevatezoomplus_ui_remove_respond in ElevateZoom Plus 7

Handles removing the responds.

1 string reference to '_elevatezoomplus_ui_remove_respond'
ElevateZoomPlusForm::edit_form in modules/ui/src/Form/ElevateZoomPlusForm.php
Provide the actual editing form.

File

modules/ui/elevatezoomplus_ui.module, line 59
Provides the ElevateZoomPlus UI.

Code

function _elevatezoomplus_ui_remove_respond($form, &$form_state) {
  $num = $form_state['num_responds'];
  if ($num > 0) {
    $form_state['num_responds'] = $num - 1;
  }
  $form_state['rebuild'] = TRUE;
}