search_get_info

Versions
7
search_get_info()

Get information about all available search hooks.

Code

modules/search/search.module, line 234

<?php
function search_get_info() {
  $search_hooks = &drupal_static(__FUNCTION__);

  if (!isset($search_hooks)) {
    foreach (module_implements('search_info') as $module) {
      $search_hooks[$module] = call_user_func($module . '_search_info');
      // Use module name as the default.
      $search_hooks[$module] += array('title' => $module, 'path' => $module);
    }
  }
  return $search_hooks;
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.