diff --git a/video_embed_field.module b/video_embed_field.module index 879f216..47eaf9f 100644 --- a/video_embed_field.module +++ b/video_embed_field.module @@ -2,8 +2,31 @@ /** * @file - * Module file for video_embed_field. + * This is the module file for video_embed_field. +*/ + +use Drupal\Core\Routing\RouteMatchInterface; + +/** + * Implements hook_help(). */ +function video_embed_field_help($route_name, RouteMatchInterface $route_match){ + switch ($route_name) { + case 'help.page.video_embed_field': + $output = ''; + $output .= '
' . t('The Video Embed Field module allows you to create a simple field type to embed videos from YouTube and Vimeo and show their thumbnail previews simply by entering the video\'s url. See the Field module help and the Field UI help pages for general information on fields and how to create and manage them. For more information, see the online community documentation for the Video Embed Field module.', array(':field' => \Drupal::url('help.page', array('name' => 'field')), ':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#', ':video_embed_field_documentation' => 'https://www.drupal.org/node/2716983')) . '
'; + $output .= '