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('About') . '

'; + $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 .= '

' . t('Uses') . '

'; + $output .= '
'; + $output .= '
' . t('Managing and displaying video embed fields') . '
'; + $output .= '
' . t('The settings and the display of the video embed field can be configured separately. See the Field UI help for more information on how to manage fields and their display.', array(':field_ui' => (\Drupal::moduleHandler()->moduleExists('field_ui')) ? \Drupal::url('help.page', array('name' => 'field_ui')) : '#')) . '
'; + $output .= '
' . t('Video Providers') . '
'; + $output .= '
' . t('Vimeo and YouTube are provided by default, but a number of contrib modules exist for the following additional providers:') . '
'; + $output .= '
' . t(' AOL, Brightcove, Dailymotion, Dreambroker, Facebook, Instagram, Metacafe, MySpace, Rutube, Ted, Vidyard, Vimeo (packaged with the module), Vine, Wistia, Youku, YouTube (packaged with the module)') .'
'; + $output .= '
' . t('Any (or all) of these additional plugins to the Video Embed field module adds the ability to embed the additional video type in a manner similar to those the Youtube and Vimeo types included in the main video_embed_field module') . '
'; + return $output; + } +} /** * Implements hook_theme().