function slick_ui_add_breakpoints in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 slick_ui/slick_ui.module \slick_ui_add_breakpoints()
Callback for ajax-enabled breakpoints textfield, no method allowed for D7.
Selects and returns the responsive options.
1 string reference to 'slick_ui_add_breakpoints'
- SlickUi::edit_form in slick_ui/
plugins/ export_ui/ SlickUi.class.php - Overrides the actual editing form.
File
- slick_ui/
plugins/ export_ui/ SlickUi.class.php, line 1104 - Contains the CTools export UI integration code.
Code
function slick_ui_add_breakpoints($form, $form_state) {
if ($form_state['values']['breakpoints'] && $form_state['values']['breakpoints'] >= 8) {
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['options']['responsives']['responsive'];
}