SHARE
TWEET

Untitled

a guest Jan 18th, 2019 64 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. // $Id$
  3.  
  4. /**
  5.  * @file
  6.  * Main Module
  7. */
  8.  
  9. /**
  10.  * Implementation of hook_views_api().
  11.  */
  12. function views_horizontal_slider_views_api() {
  13.   return array(
  14.     'api' => 2.0,
  15.     'path' => drupal_get_path('module', 'views_horizontal_slider') . '/includes',
  16.   );
  17. }
  18.  
  19. /* add the actual inline lightweight jquery script */
  20.  
  21. function views_horizontal_slider_add_js() {
  22.   drupal_add_js('jQuery(document).ready(function () { alert("Hello!"); });', array('type' => 'inline', 'scope' => 'footer', 'weight' => 5));
  23. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top