function contact_site_page

6.x contact.pages.inc contact_site_page()

Site-wide contact page.

1 string reference to 'contact_site_page'
contact_menu in drupal-6.x/modules/contact/contact.module
Implementation of hook_menu().

File

drupal-6.x/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;
}