You are here

function elevatezoomplus_ui_add_repond_validate in ElevateZoom Plus 7

Handles AJAX switching the breakpoints based on the input value.

This must be put outside the class (always available) for the AJAX to work when using namespaced classes.

File

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

Code

function elevatezoomplus_ui_add_repond_validate($form, $form_state) {
  if (!empty($form_state['num_responds']) && $form_state['num_responds'] >= 6) {
    drupal_set_message(t('You are trying to load too many Breakpoints. Try reducing it to reasonable numbers say, between 1 to 5.'));
  }
  return $form['respond']['settings'];
}