Guest User

Untitled

a guest
Jan 18th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  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. }
Add Comment
Please, Sign In to add comment