You are here

function flexslider_library_alter in Flex Slider 7

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

Implements hook_library_alter(). @author minorOffense <mwinstone@coldfrontlabs.ca>

File

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

Code

function flexslider_library_alter(&$libraries, $module) {
  $debug = variable_get('flexslider_debug', FALSE);
  if ($debug) {

    // Switch to the unminified version of the library
    if ($module == 'flexslider' && isset($libraries['flexslider'])) {
      $libraries['flexslider']['js'] = array(
        libraries_get_path('flexslider') . '/jquery.flexslider.js' => array(),
      );
    }
  }

  // @todo configure the styles for the theme to be altered by admin configurations
  // As it's only possible to use one theme per page, use the first one we get for everything.
  // @todo load the selected theme
  // @todo override css path
  $theme = !empty($optionset['theme']) ? $optionset['theme'] : 'default';
}