You are here

function royalslider_library in RoyalSlider Integration 7

Implements hook_library().

We also define RoyalSlider through the core library callbacks

File

./royalslider.module, line 61
RoyalSlider module.

Code

function royalslider_library() {
  $library_path = libraries_get_path('royalslider');
  $libraries['royalslider'] = array(
    'title' => 'RoyalSlider',
    'website' => 'http://dimsemenov.com/plugins/royal-slider/',
    'version' => ROYALSLIDER_VERSION,
    'js' => array(
      $library_path . '/jquery.royalslider.min.js' => array(
        'scope' => 'footer',
      ),
    ),
    'css' => array(
      $library_path . '/royalslider.css' => array(
        'type' => 'file',
        'media' => 'screen',
      ),
    ),
  );
  return $libraries;
}