Hi there,

I am trying to pass in some customization to my ImageFlow gallery using template.php to override the views_slideshow_imageflow.js script in my theme. It seems that the $scripts variable doesn't call that file, when I use unset() to remove it it's still being rendered. I used a print_r($scripts) to check and indeed do not see it called. I added my own version using drupal_add_js(), but it loads before the module's .js file in the head and so mine is overridden. Can anyone point me in the right direction as to how to remove and replace this file in template.php? I'm a php noob so please be specific. Here is what didn't work:

$scripts = drupal_add_js();
unset($scripts['module'][sites/all/modules/views_slideshow_imageflow/themes/js/views_slideshow_imageflow.js']);
$vars['scripts'] = drupal_get_js('header', $scripts);
return $vars;
drupal_add_js(drupal_get_path('theme', 'mytheme') .'/js/views_slideshow_imageflow.js');

Forgive me if I'm going about this all wrong...my script loads alright but the original one is not removed.