function slick_ui_add_breakpoints in Slick Carousel 7.3
Same name and namespace in other branches
- 7.2 slick_ui/plugins/export_ui/SlickUi.class.php \slick_ui_add_breakpoints()
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.
1 string reference to 'slick_ui_add_breakpoints'
- SlickForm::edit_form in slick_ui/
src/ Form/ SlickForm.php - Provide the actual editing form.
File
- slick_ui/
slick_ui.module, line 103 - Provides Slick carousel configuration entity UI.
Code
function slick_ui_add_breakpoints($form, $form_state) {
if (!empty($form_state['values']['breakpoints']) && $form_state['values']['breakpoints'] >= 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['responsives']['responsive'];
}