Advertisement
Guest User

Untitled

a guest
Mar 5th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.56 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4.  * Implements hook_menu().
  5.  */
  6. function search_lightbox_menu() {
  7.   $items['lightbox/search'] = array(
  8.     'page callback' => array('_search_lightbox_finder'),
  9.     'access arguments' => array('search content'),
  10.   );
  11.  
  12.   return $items;
  13. }
  14.  
  15. /**
  16.  * Implements hook_node_load().
  17.  */
  18. function search_lightbox_node_load($nodes, $types) {
  19.   drupal_add_js(drupal_get_path('module', 'finder') . '/plugins/element_handler/autocomplete.js');
  20. }
  21.  
  22. function _search_lightbox_finder() {
  23.   print render(module_invoke('finder', 'block_view', 'content_finder'));
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement