Return to Snippet

Revision: 7950
at August 23, 2008 19:47 by aleprieto


Initial Code
<?php
/**
* Theme override for search results.
*
* Replace themename with your theme's name.
*/
function themename_search_item($item, $type) {
  $output = ' <dt class="title"><a href="'. check_url($item['link']) .'">'. check_plain($item['title']) .'</a></dt>';
  $output .= ' <dd>'. ($item['snippet'] ? '<p>'. $item['snippet'] .'</p>' : '');
  return $output;
}
?>

Initial URL

                                

Initial Description
Allows to customize the search results page.

Initial Title
Customize search results

Initial Tags
form, template, search, drupal

Initial Language
PHP