diff --git a/social_media.module b/social_media.module index 8f842b3..974a226 100644 --- a/social_media.module +++ b/social_media.module @@ -33,4 +33,19 @@ function social_media_mail($key, &$message, $params) { $message['body'][] = $params['message']; break; } +} + +/** + * Implements hook_help(). + */ +function social_media_help($route_name, \Drupal\Core\Routing\RouteMatchInterface $route_match) { + if ($route_name == 'help.page.social_media') { + $output = ''; + $output .= '<h3>' . t('About') . '</h3>'; + $output .= '<p>' . t('The social media share module allows the user to share current page to different social media platforms. It is rendered as block, you can place it anywhere of your site.') . '</p>'; + $output .= '<p>' . t('Module provides social media field type so that you can add it as field in entity and take all benefits from field API.') . '</p>'; + $output .= '<p>' . t('It is flexible to share any page of the site whether it is node, term , panels, view pages so on.') . '</p>'; + $output .= '<p>' . t('Analyse the <a href="https://git.drupalcode.org/project/social_media/blob/8.x-1.x/README.txt">Readmore</a> to get more information about this module.') . '</p>'; + return $output; + } } \ No newline at end of file