function slick_clean_options in Slick Carousel 7.2
Same name and namespace in other branches
- 7.3 includes/slick.admin.inc \slick_clean_options()
Removes problematic options for the responsive Slick.
They should exist once for a given Slick, or not easy to deal with, or make no sense in the responsive context. JS takes care of their relevant copy.
Parameters
array $options: An array of all available options, can be form elements, or basic ones.
Return value
array An array of cleaned out options for the responsive displays.
2 calls to slick_clean_options()
- SlickUi::getSlickResponsiveElements in slick_ui/
plugins/ export_ui/ SlickUi.class.php - Defines available options for the responsive Slick.
- slick_get_responsive_options in includes/
slick.admin.inc - Defines a list of options available for the responsive Slick.
File
- includes/
slick.admin.inc, line 49 - Contains optional functions called only if needed by admin pages.
Code
function slick_clean_options(array $options) {
$excludes = drupal_map_assoc(array(
'mobileFirst',
'asNavFor',
'mousewheel',
'slide',
'lazyLoad',
'prevArrow',
'nextArrow',
'dotsClass',
'appendDots',
'respondTo',
'rtl',
));
drupal_alter('slick_clean_options_info', $excludes);
return array_diff_key($options, $excludes);
}