1 search_extra_type.module search_extra_type_search_execute($keys = NULL, $conditions = NULL)

Implements hook_search_execute().

This is a dummy search, so when search "executes", we just return a dummy result containing the keywords and a list of conditions.

File

core/modules/search/tests/search_extra_type/search_extra_type.module, line 36
Dummy module implementing a search type for search module testing.

Code

function search_extra_type_search_execute($keys = NULL, $conditions = NULL) {
  if (!$keys) {
    $keys = '';
  }
  return array(
    array(
      'link' => url('node'),
      'type' => 'Dummy result type',
      'title' => 'Dummy title',
      'snippet' => "Dummy search snippet to display. Keywords: {$keys}\n\nConditions: " . print_r($conditions, TRUE),
    ),
  );
}