Drupal / Display created date in my site’s search results

asked Sep 6, 2013 in Website Builder by Karen
I am using Drupal 7  and  I want to display the date a node was published in the search result, instead of the last modified date. Can anyone please help?

1 Answer

0 like 0 dislike
answered Sep 6, 2013 by expert
You can do this using hook_search_result() module to edit the search result  info and then process it in your theme from the function preprocess_search_result.
This might help