function search_get_info

cis7 search.module search_get_info($all = FALSE)
cle7 search.module search_get_info($all = FALSE)
elmsmedia7 search.module search_get_info($all = FALSE)
icor7 search.module search_get_info($all = FALSE)
meedjum_blog7 search.module search_get_info($all = FALSE)
mooc7 search.module search_get_info($all = FALSE)

Returns information about available search modules.

Parameters

$all: If TRUE, information about all enabled modules implementing hook_search_info() will be returned. If FALSE (default), only modules that have been set to active on the search settings page will be returned.

Return value

Array of hook_search_info() return values, keyed by module name. The 'title' and 'path' array elements will be set to defaults for each module if not supplied by hook_search_info(), and an additional array element of 'module' will be added (set to the module name).

14 calls to search_get_info()
ctools_search_form_content_type_admin_title in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_form.inc
Returns the administrative title for a type.
ctools_search_form_content_type_edit_form in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_form.inc
Returns an edit form for custom type settings.
ctools_search_result_content_type_admin_title in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_result.inc
Returns the administrative title for a type.
ctools_search_result_content_type_edit_form in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_result.inc
Returns an edit form for custom type settings.
ctools_search_result_content_type_render in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_result.inc
Render the custom content type.

... See full list

1 string reference to 'search_get_info'
search_menu in modules/search/search.module
Implements hook_menu().

File

modules/search/search.module, line 254
Enables site-wide keyword searching.

Code

function search_get_info($all = FALSE) {
  $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 value.
      $search_hooks[$module] += array(
        'title' => $module,
        'path' => $module,
      );
      // Include the module name itself in the array.
      $search_hooks[$module]['module'] = $module;
    }
  }

  if ($all) {
    return $search_hooks;
  }

  $active = variable_get('search_active_modules', array('node', 'user'));
  return array_intersect_key($search_hooks, array_flip($active));
}