materio_search_api_ajax.module 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @file
  4. * This is the file description for materio_search_api_ajax module.
  5. *
  6. * In this more verbose, multi-line description, you can specify what this
  7. * file does exactly. Make sure to wrap your documentation in column 78 so
  8. * that the file can be displayed nicely in default-sized consoles.
  9. */
  10. /**
  11. * Implements hook_init().
  12. */
  13. function materio_search_api_ajax_init() {
  14. drupal_add_js(drupal_get_path('module', 'materio_search_api_ajax').'/js/libraries/jquery.history.js');
  15. drupal_add_js(drupal_get_path('module', 'materio_search_api_ajax').'/js/materio_search_api_ajax-ck.js');
  16. }
  17. /**
  18. * Implements hook_menu().
  19. */
  20. function materio_search_api_ajax_menu() {
  21. $items = array();
  22. $items['materio_search_api_ajax/search/%'] = array(
  23. 'title' => 'Matrio base ajax',
  24. 'page callback' => 'materio_search_api_ajax_search',
  25. 'page arguments' => array(2,3),
  26. 'access callback' => TRUE,
  27. 'access arguments' => array('use materio search api'),
  28. 'file' => 'materio_search_api_ajax.pages.inc',
  29. 'type' => MENU_CALLBACK,
  30. );
  31. return $items;
  32. }