Posted By

aleprieto on 08/23/08


Tagged

form template search drupal phptemplate


Versions (?)

Customize search results


 / Published in: PHP
 

Allows to customize the search results page.

  1. <?php
  2. /**
  3. * Theme override for search results.
  4. *
  5. * Replace themename with your theme's name.
  6. */
  7. function themename_search_item($item, $type) {
  8. $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>';
  9. $output .= ' <dd>'. ($item['snippet'] ? '<p>'. $item['snippet'] .'</p>' : '');
  10. return $output;
  11. }
  12. ?>

Report this snippet  

You need to login to post a comment.