function contact_site_page in Drupal 5
Same name and namespace in other branches
- 6 modules/contact/contact.pages.inc \contact_site_page()
Site-wide contact page
1 string reference to 'contact_site_page'
- contact_menu in modules/
contact/ contact.module - Implementation of hook_menu().
File
- modules/
contact/ contact.module, line 404 - Enables the use of personal and site-wide contact forms.
Code
function contact_site_page() {
global $user;
if (!flood_is_allowed('contact', variable_get('contact_hourly_threshold', 3))) {
$output = t("You cannot send more than %number messages per hour. Please try again later.", array(
'%number' => variable_get('contact_hourly_threshold', 3),
));
}
else {
$output = drupal_get_form('contact_mail_page');
}
return $output;
}