You are here

function flexslider_library_alter in Flex Slider 7.2

Same name and namespace in other branches
  1. 7 flexslider.module \flexslider_library_alter()

Implements hook_library_alter().

File

./flexslider.module, line 96
A light-weight, customizable image gallery plugin for Drupal based on jQuery

Code

function flexslider_library_alter(&$libraries, $module) {

  // Enable debug mode
  if (FLEXSLIDER_DEBUG) {
    if ($module == 'flexslider' and isset($libraries['flexslider'])) {
      $libraries['flexslider']['js'] = array(
        libraries_get_path() . '/jquery.flexslider.js' => array(
          'scope' => 'footer',
        ),
      );
    }
  }
}