\n"; $output .= " "; $output .= " \n"; $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[title]
"; $output .= " $site_url$entry[link]". ($entry[user] ? " - ". format_username($entry[user]) : "") ."". ($entry[date] ? " - ". format_date($entry[date], "small") : "") .""; $output .= "

\n"; } } if (!$output) { $output .= t("Your search yielded no results."); } return $output; } ?>