How to pass extra information to search results page using hook node_api I want to show some extra information on the search result page in Drupal. I want to implement it in a module (and not in the theme).

I am using this code in my custom module:

function custommodule_nodeapi(&amp;$node, $op, $a3 = NULL, $a4 = NULL) {
  switch ($op){
     case 'search result':
      return 'TEST';
      break;
    }


When I debug the statement, the line return 'Test' is executed.
I would expect this extra information to show up at: search-result.tpl.php in the variable $info. 

However this extra information is not included. Has anyone got a clue how to pass this extra information so it shows up at the result page?
You could try this

&lt;?php

function your_custom_module_name_preprocess_search_results(&amp;$variables){
    $var['info'] = 'the_value_you_want_to_include';
}
?&gt;


Now you can use the variable $info in search-result.tpl.php.