search"; } return $links ? $links : array(); } function search_page() { global $theme, $type, $keys, $REQUEST_URI; if (user_access("search content")) { // verify input: $type = check_input($type); $keys = check_input($keys); // build options list: foreach (module_list() as $name) { if (module_hook($name, "search")) { $options .= "\n"; } } // build form: $form .= "
\n"; // visualize form: $theme->header(); if ($form) { $theme->box(t("Search"), $form); } if ($keys) { $theme->box(t("Result"), search_data($keys, $type)); } $theme->footer(); } else { $theme->header(); $theme->box("Access denied", message_access()); $theme->footer(); } } ?>