function search_data

×

Error message

User warning: The following module is missing from the file system: theme/theme. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1156 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
cis7 search.module search_data($keys, $module, $conditions = NULL)
cle7 search.module search_data($keys, $module, $conditions = NULL)
elmsmedia7 search.module search_data($keys, $module, $conditions = NULL)
icor7 search.module search_data($keys, $module, $conditions = NULL)
meedjum_blog7 search.module search_data($keys, $module, $conditions = NULL)
mooc7 search.module search_data($keys, $module, $conditions = NULL)

Performs a search by calling hook_search_execute().

Parameters

$keys: Keyword query to search on.

$module: Search module to search.

$conditions: Optional array of additional search conditions.

Return value

Renderable array of search results. No return value if $keys are not supplied or if the given search module is not active.

Related topics

3 calls to search_data()
advanced_help_search_view in sites/all/modules/ulmus/advanced_help/advanced_help.module
Page callback for advanced help search.
ctools_search_result_content_type_render in sites/all/modules/ulmus/ctools/plugins/content_types/search/search_result.inc
Render the custom content type.
search_view in modules/search/search.pages.inc
Menu callback; presents the search form and/or search results.

File

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

Code

function search_data($keys, $module, $conditions = NULL) {
  if (module_hook($module, 'search_execute')) {
    $results = module_invoke($module, 'search_execute', $keys, $conditions);
    if (module_hook($module, 'search_page')) {
      return module_invoke($module, 'search_page', $results);
    }
    else {
      return array(
        '#theme' => 'search_results',
        '#results' => $results,
        '#module' => $module,
      );
    }
  }
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.