From 72c76ba2f9afffa69827f08559ac05411194f77b Mon Sep 17 00:00:00 2001 From: Mark Carver Date: Fri, 9 Aug 2013 11:17:14 -0500 Subject: Issue #2061499 by Mark Carver: Allow themes/module to modify settings in preprocess --- theme/flexslider.theme.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/theme/flexslider.theme.inc b/theme/flexslider.theme.inc index 17560a3..0b95151 100755 --- a/theme/flexslider.theme.inc +++ b/theme/flexslider.theme.inc @@ -137,11 +137,15 @@ function template_preprocess_flexslider(&$vars) { // Add the attributes to the settings array. $settings['attributes'] = $attributes; - - // Finally, add the FlexSlider library - flexslider_add($settings['attributes']['id'], $optionset); } +/** + * Process function for flexslider. + */ +function template_process_flexslider(&$vars) { + // Finally, add the FlexSlider library. + flexslider_add($vars['settings']['attributes']['id'], $vars['settings']['optionset']); +} /** * Preprocess function for flexslider_list_item -- 1.8.2