From 700a232f959017fc94e3978b603bffe2f4a8b4bb Mon Sep 17 00:00:00 2001
From: mmrares <mmrares@gmail.com>
Date: Sat, 25 Jan 2014 11:29:28 +0200
Subject: [PATCH] Issue #2091401: Update hook_help for Edit module.

---
 core/modules/edit/edit.module | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module
index 3eaabcc..59af739 100644
--- a/core/modules/edit/edit.module
+++ b/core/modules/edit/edit.module
@@ -15,6 +15,23 @@
 use Drupal\Core\Entity\Display\EntityViewDisplayInterface;
 
 /**
+ * Implements hook_help().
+ */
+function edit_help($path, $arg) {
+  switch ($path) {
+    case 'admin/help#edit':
+      $output = '<h3>' . t('About') . '</h3>';
+      $output .= '<p>' . t('The Edit module allows users with the <em>Access in-place editing</em> permission to edit field content without visiting a separate page. For more information, see <a href="!handbook_url">the online documentation for the Edit module</a>.', array('!handbook_url' => 'https://drupal.org/documentation/modules/edit')) . '</p>';
+      $output .= '<h3>' . t('Uses') . '</h3>';
+      $output .= '<dl>';
+      $output .= '<dt>' . t('In-place content editing') . '</dt>';
+      $output .= '<dd>' . t('When enabled, rather than having to visit a separate page to edit content, it may be edited in-place. Once the user has the <em>Access in-place editing</em> permission, an edit button will appear which allows the user to edit the field\'s content.') . '</dd>';
+      $output .= '</dl>';
+      return $output;
+  }
+}
+
+/**
  * Implements hook_permission().
  */
 function edit_permission() {
-- 
1.8.0.msysgit.0

