You are here

function background_video_library in Background Video 7

Implements hook_library().

This function is to load the Jquery and CSS defined in our module.

File

./background_video.module, line 72
This file provides basic functionality.

Code

function background_video_library() {
  $libraries['background_video'] = array(
    'title' => 'Play Background Video',
    'version' => '1.2',
    'js' => array(
      drupal_get_path('module', 'background_video') . '/js/background_video.js' => array(),
    ),
    'css' => array(
      drupal_get_path('module', 'background_video') . '/css/background_video.css' => array(),
    ),
  );
  return $libraries;
}