Hello,

I need to modify the slider's optionset on the fly since each node should have an individual setting.
So I tried to change the optionset in a process function:

function my_mod_process_flexslider(&$vars) {
  $vars['settings']['optionset'] = flexslider_optionset_load('version_2');
}

Unfortunately that does not have any effect on the slider. Where and would I have to make this change?

Thx

Comments

l0calh0rst’s picture

Status: Active » Fixed

Nevermind... found it:

function my_mod_preprocess_flexslider(&$vars) {
  $vars['settings']['optionset'] = 'version_2';
}

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.