function search_form($keys) { global $REQUEST_URI; $output .= "
\n"; return $output; } function search_data($keys, $type) { if ($keys && $type) { $result = module_execute($type, "find", $keys); foreach ($result as $entry) { $output .= "\n";
$output .= " $entry[subject]
";
$output .= " $site_url$entry[link]". ($entry[user] ? " - ". format_username($entry[user]) : "") ."". ($entry[date] ? " - ". format_date($entry[date], "small") : "") ."";
$output .= "