summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruveshTripathi2017-03-21 21:10:22 (GMT)
committerJason Flatt2017-03-21 21:10:22 (GMT)
commitc6768eb6954457808ca44df99b90aa7f1ef1bb58 (patch)
tree722c7d7d397bff8139988d9eb88fd1400f700939
parenteaa251778a26df7ce894a85d15cd18c5f3709ae1 (diff)
Issue #2857317 by saradaprasad17, dhruveshdtripathi, oadaeh: Create Help Page for Module
-rwxr-xr-xprivatemsg.module23
1 files changed, 23 insertions, 0 deletions
diff --git a/privatemsg.module b/privatemsg.module
index 93155f7..ac9b8a7 100755
--- a/privatemsg.module
+++ b/privatemsg.module
@@ -19,6 +19,29 @@ define('PRIVATEMSG_UNREAD', 1);
define('PRIVATEMSG_UNLIMITED', 'unlimited');
/**
+ * Implements hook_help()
+ */
+function privatemsg_help($path, $arg) {
+ $output = '';
+ switch ($path) {
+ case 'admin/help#privatemsg':
+ $output .= '';
+ $output .= '<h3>' . t('About') . '</h3>';
+ $output .= '<p>' . t('The Privatemsg module is designed to be a flexible and powerful system for sending and receiving internal messages. This includes user-to-user messages, user-to-role messages, messages from the site administrator, and much more. If you want some or all users on your site to have their own "mailbox"--and other users with the proper permissions to be able to message them through this mailbox--then this is the module for you.') . '</p>';
+ $output .= '<h3>' . t('Uses') . '</h3>';
+ $output .= '<p>' . t('One of the strengths of Privatemsg is that it has a broad feature set and a modular architecture. The core Private Message module includes features such as threaded conversations (making it easier to keep track of messages and replies), search capability, new message alerts (via Drupal messages and blocks), and message tokens (similar to a mail merge).') . '</p>';
+ $output .= '<dl>';
+ $output .= '<dt>' . t('<h6>Configuration Steps</h6>') . '</dt>';
+ $output .= '<dd>' . t('1. Go to People > Permissions (admin/people/permissions) and find the relevant module permissions underneath the "Private messages" section. If you are not logged in as user #1, you must give at least one role (probably the administrator role) the "Administer privatemsg" permission to configure this module.') . '</dd>';
+ $output .= '<dd>' . t('2. On this same Permissions page, give at least one role the "Read private messages" permission and the "Write new private messages" permission. This will allow members of that role to read and write private messages.') . '</dd>';
+ $output .= '<dd>' . t('3. Go to Configuration > Private messages (admin/config/messaging/privatemsg) and configure the module settings per your requirements. If you have various sub-modules enabled, their settings pages may appear as tabs on this page. ') . '</dd>';
+ $output .= '<dd>' . t('4. Login as a user with the role we specified in Step #2. Visit /messages to see the user&apos;s mailbox. Visit /messages/new to write a new message.') . '</dd>';
+ $output .= '</dl>';
+ }
+ return $output;
+}
+
+/**
* Implements hook_permission().
*/
function privatemsg_permission() {