diff --git a/core/modules/quickedit/quickedit.module b/core/modules/quickedit/quickedit.module index 5d5ccb4..0e0ff72 100644 --- a/core/modules/quickedit/quickedit.module +++ b/core/modules/quickedit/quickedit.module @@ -13,6 +13,28 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\Core\Entity\Display\EntityViewDisplayInterface; +use Symfony\Component\HttpFoundation\Request; + +/** + * Implements hook_help(). + */ +function quickedit_help($route_name, Request $request) { + switch ($route_name) { + case 'help.page.quickedit': + $output = '

' . t('About') . '

'; + $output .= '

' . t('The Quick Edit module allows users with the Access in-place editing permission to edit field content without visiting a separate page. For more information, see the online documentation for the Quick Edit module.', array('!handbook_url' => 'https://drupal.org/documentation/modules/edit')) . '

'; + $output .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Editing content in-place') . '
'; + $output .= '
'; + $output .= '

' . t('To edit content in place, you need to activate quick edit mode for a content item. Activate quick edit mode by choosing Quick edit from the contextual links for an area displaying the content (see the Contextual Links module help) for more information about how to use contextual links).', array('!contextual' => \Drupal::url('help.page', array('name' => 'contextual')))) . '

'; + $output .= '

' . t('Once quick edit mode is activated, you will be able to edit the individual fields of your content. In the default theme, with a JavaScript-enabled browser and a mouse, the output of different fields in your content is outlined in blue, a pop-up gives the field name as you hover over the field output, and clicking on a field activates the editor. Closing the pop-up window ends quick edit mode.') . '

'; + $output .= '
'; + $output .= '
'; + return $output; + } +} + /** * Implements hook_permission().