You are here

function contact_help in Drupal 5

Same name and namespace in other branches
  1. 8 core/modules/contact/contact.module \contact_help()
  2. 4 modules/contact.module \contact_help()
  3. 6 modules/contact/contact.module \contact_help()
  4. 7 modules/contact/contact.module \contact_help()
  5. 9 core/modules/contact/contact.module \contact_help()

Implementation of hook_help().

File

modules/contact/contact.module, line 11
Enables the use of personal and site-wide contact forms.

Code

function contact_help($section) {
  switch ($section) {
    case 'admin/help#contact':
      $output = '<p>' . t('The contact module enables the use of both personal and site-wide contact forms, thereby facilitating easy communication within the community. While personal contact forms allow users to contact each other by e-mail, site-wide forms allow community members to contact the site administration from a central location. Users can specify a subject and message in the contact form, and also request that a copy of the e-mail be sent to their own address.') . '</p>';
      $output .= '<p>' . t("Users can activate/deactivate their personal contact forms in their account settings. Upon activation, a contact tab will appear in their user profiles. Privileged users such as site administrators are able to contact users even if they have chosen not to enable this feature.") . '</p>';
      $output .= '<p>' . t("Note that the contact tab will not appear when a user views his or her own profile; only when viewing another user's profile, if that user's contact form is enabled.") . '</p>';
      $output .= '<p>' . t('If the menu module is enabled, a menu item linking to the site-wide contact page is added to the navigation block. It is disabled by default, but can be enabled via the <a href="@menu-module">menu management</a> page. Links to the contact page may also be added to the primary and secondary links using the same page.', array(
        '@menu-module' => url('admin/build/menu'),
      )) . '</p>';
      $output .= '<p>' . t('For more information, please read the configuration and customization handbook page for the <a href="@contact">contact module</a>.', array(
        '@contact' => url('http://drupal.org/handbook/modules/contact/', NULL, NULL, TRUE),
      )) . '</p>';
      return $output;
    case 'admin/build/contact':
      $output = '<p>' . t('This page lets you setup <a href="@form">your site-wide contact form</a>. To do so, add one or more categories. You can associate different recipients with each category to route e-mails to different people. For example, you can route website feedback to the webmaster and direct product information requests to the sales department. On the <a href="@settings">settings page</a>, you can customize the information shown above the contact form. This can be useful to provide additional contact information such as your postal address and telephone number.', array(
        '@settings' => url('admin/build/contact/settings'),
        '@form' => url('contact'),
      )) . '</p>';
      if (!module_exists('menu')) {
        $menu_note = t('The menu item can be customized and configured only once the menu module has been <a href="@modules-page">enabled</a>.', array(
          '@modules-page' => url('admin/settings/modules'),
        ));
      }
      else {
        $menu_note = '';
      }
      $output .= '<p>' . t('The contact module also adds a <a href="@menu-settings">menu item</a> (disabled by default) to the navigation block.', array(
        '@menu-settings' => url('admin/build/menu'),
      )) . ' ' . $menu_note . '</p>';
      return $output;
  }
}