Commit 229ab9fa authored by dhruveshdtripathi's avatar dhruveshdtripathi Committed by zvse

Issue #2862767 by dhruveshdtripathi, zvse: Implement hook_help for module

parent bc59ef36
......@@ -4,8 +4,32 @@
* @file
* Youtube field module adds a field for YouTube videos.
*/
require_once (dirname(__FILE__) . '/youtube.inc');
/**
* Implements hook_help().
*/
function youtube_help($path, $arg) {
switch ($path) {
case 'admin/help#youtube':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('The YouTube field module provides a simple field that allows you to add a youtube video to a content type, user, or any other Drupal entity.') . '</p>';
$output .= '<p>' . t('For more information, see the <a href=":url">Youtube Field module</a>.', array(':url' => 'https://www.drupal.org/project/youtube')) . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<h5>' . t('The module provides following Display Types:') . '</h5>';
$output .= '<dl>';
$output .= '<dt><strong>' . t('YouTube videos of various sizes') . '</strong></dt>';
$output .= '<dd>' . t('This includes a responsive option that expands the player to the width of its container.') . '</dd>';
$output .= '<dt><strong>' . t('YouTube thumbnails displayed with image styles') . '</strong></dt>';
$output .= '<dd>' . t('These thumbnails can be linked to the content, YouTube page, or the video player in a Colorbox window.') . '</dd>';
$output .= '</dl>';
return $output;
}
}
/**
* Implements hook_menu().
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment