From 5fc914e017cbf5951c7cc75ab35e808e1238b8d6 Mon Sep 17 00:00:00 2001 From: Angie Byron Date: Thu, 14 Jan 2010 05:51:59 +0000 Subject: #599124 by jhodgdon and Bojhan: Cleanup contact_help(). --- modules/contact/contact.module | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to 'modules/contact') diff --git a/modules/contact/contact.module b/modules/contact/contact.module index b1d21099f..a388e9c78 100644 --- a/modules/contact/contact.module +++ b/modules/contact/contact.module @@ -14,25 +14,23 @@ function contact_help($path, $arg) { case 'admin/help#contact': $output = ''; $output .= '

' . t('About') . '

'; - $output .= '

' . t('The Contact module allows visitors to contact site administrators and other users. Users specify a subject, write their message, and can have a copy of their message sent to their own e-mail. For more information, see the online handbook entry for Contact module.', array('@contact' => 'http://drupal.org/handbook/modules/contact/')) . '

'; + $output .= '

' . t('The Contact module allows visitors to contact site administrators and other users. Users specify a subject, write their message, and can have a copy of their message sent to their own e-mail address. For more information, see the online handbook entry for Contact module.', array('@contact' => 'http://drupal.org/handbook/modules/contact/')) . '

'; $output .= '

' . t('Uses') . '

'; $output .= '
'; $output .= '
' . t('User contact forms') . '
'; $output .= '
' . t('Site users can be contacted with a user contact form that keeps their e-mail address private. Users may enable or disable their personal contact forms by editing their My account page. If enabled, a Contact tab leads to a personal contact form displayed on their user profile. Site administrators are still able to use the contact form, even if has been disabled. The Contact tab is not shown when you view your own profile.') . '
'; $output .= '
' . t('Site-wide contact forms') . '
'; - $output .= '
' . t('The Contact page provides a simple form for visitors to leave comments, feedback, or other requests. Only users in roles with the Use the site-wide contact form permission may access the contact page. You can create categories for directing the contact form contents to a set of defined recipients. Common categories for a business site, for example, might include "Website feedback" (messages are forwarded to website administrators) and "Product information" (messages are forwarded to members of the sales department). E-mail addresses defined within a category are not displayed publicly.', array('@contact' => url('contact'))) . '

'; + $output .= '
' . t('The Contact page provides a simple form for users with the Use the site-wide contact form permission to send comments, feedback, or other requests. You can create categories for directing the contact form messages to a set of defined recipients. Common categories for a business site, for example, might include "Website feedback" (messages are forwarded to website administrators) and "Product information" (messages are forwarded to members of the sales department). E-mail addresses defined within a category are not displayed publicly.', array('@contact' => url('contact'))) . '

'; $output .= '
' . t('Navigation') . '
'; - $output .= '
' . t("When the site-wide contact form is enabled, a link in the main Navigation menu is created, but is disabled by default. This menu item can be enabled on the Menu administration page.", array('@contact' => url('contact'), '@menu' => url('admin/structure/menu'))) . '
'; + $output .= '
' . t("When the site-wide contact form is enabled, a link in the main Navigation menu is created, but the link is disabled by default. This menu link can be enabled on the Menus administration page.", array('@contact' => url('contact'), '@menu' => url('admin/structure/menu'))) . '
'; + $output .= '
' . t('Customization') . '
'; + $output .= '
' . t('If you would like additional text to appear on the site-wide or personal contact page, use a block. You can create and edit blocks on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '
'; $output .= '
'; return $output; case 'admin/structure/contact': - $output = '

' . t('Add one or more categories to set up your site-wide contact form. You can customize the information above the contact form on the settings page.', array('@settings' => url('admin/structure/contact/settings'), '@form' => url('contact'))) . '

'; if (!module_exists('menu')) { - $menu_note = t('The menu item can be configured only if the menu module is enabled.', array('@modules-page' => url('admin/modules'))); - } - else { - $menu_note = ''; - } - $output .= '

' . t('A contact menu item (disabled by default) is available in the navigation block.', array('@menu-settings' => url('admin/structure/menu'))) . ' ' . $menu_note . '

'; + $output = '

' . t('Add one or more categories on this page to set up your site-wide contact form.', array('@form' => url('contact'))) . '

'; + $output .= '

' . t('A Contact menu item (disabled by default) is added to the Navigation menu, which you can modify on the Menus administration page.', array('@menu-settings' => url('admin/structure/menu'))) . '

'; + $output .= '

' . t('If you would like additional text to appear on the site-wide contact page, use a block. You can create and edit blocks on the Blocks administration page.', array('@blocks' => url('admin/structure/block'))) . '

'; return $output; } } -- cgit v1.2.3