| 5 contact.module | contact_site_page() |
| 6 contact.pages.inc | contact_site_page() |
Site-wide contact page
1 string reference to 'contact_site_page'
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;
}
Login or register to post comments