function contact_site_page in Drupal 6
Same name and namespace in other branches
- 5 modules/contact/contact.module \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.pages.inc, line 12  - User page callbacks for the contact module.
 
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;
}