function contact_help in Drupal 4
Same name and namespace in other branches
- 8 core/modules/contact/contact.module \contact_help()
- 5 modules/contact/contact.module \contact_help()
- 6 modules/contact/contact.module \contact_help()
- 7 modules/contact/contact.module \contact_help()
- 9 core/modules/contact/contact.module \contact_help()
Implementation of hook_help().
File
- modules/
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('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/menu'),
)) . '</p>';
$output .= t('Contact module links:') . '<ul>';
$output .= '<li>' . t('Default site-wide <a href="%contact-page">contact page</a>.', array(
'%contact-page' => url('contact'),
)) . '</li>';
$output .= '<li>' . t('Site-wide contact form <a href="%configuration-page">category configuration</a>.', array(
'%configuration-page' => url('admin/contact'),
)) . '</li>';
$output .= '<li>' . t('Site-wide contact form <a href="%additional-settings">general settings</a>.', array(
'%additional-settings' => url('admin/contact/settings'),
)) . '</li>';
$output .= '<li>' . t('Site-wide contact form <a href="%menu-configuration">menu configuration</a>.', array(
'%menu-configuration' => url('admin/menu'),
)) . '</li></ul>';
$output .= 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),
));
return $output;
case 'admin/modules#description':
return t('Enables the use of both personal and site-wide contact forms.');
case 'admin/contact':
$output = 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/contact/settings'),
'%form' => url('contact'),
));
if (!module_exist('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/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/menu'),
)) . ' ' . $menu_note . '</p>';
return $output;
}
}