From a713906074e81263b909fc84b097632d0d8884d9 Mon Sep 17 00:00:00 2001 From: mmrares 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..0971590 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 = '

' . t('About') . '

'; + $output .= '

' . t('The Edit module allows users with the Access in-place editing permission to make in-place content editing for fields. For more information, see the online documentation for the Edit module.', array('!edit_do' => 'https://drupal.org/documentation/modules/edit')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('In-place content editing') . '
'; + $output .= '
' . 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 appropriate permissions, an edit button (a pencil) will appear in the top right corner of nodes and node teasers. Clicking this button allows the user to edit the field or delete the node.') . '
'; + $output .= '
'; + return $output; + } +} + +/** * Implements hook_permission(). */ function edit_permission() { -- 1.8.0.msysgit.0