You are here

function extra_body_classes_help in Extra body classes 8

Same name and namespace in other branches
  1. 7 extra_body_classes.module \extra_body_classes_help()

Implements hook_help().

File

./extra_body_classes.module, line 12
Implements extra_body_classes module.

Code

function extra_body_classes_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.extra_body_classes':
      $output = '';
      $output .= '<h3>' . t('CONTENTS OF THIS FILE') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('INTRODUCTION') . '</li>';
      $output .= '<li>' . t('INSTALLATION') . '</li>';
      $output .= '<li>' . t('HOW TO USE IT') . '</li>';
      $output .= '</ol>';
      $output .= '<h3>' . t('INTRODUCTION') . '</h3>';
      $output .= '<p>' . t('Extra body classes is a simple module which will use to provide this classes to body tag.') . '</p>';
      $output .= '<ol>';
      $output .= '<li>' . t('current date time stamp') . '</li>';
      $output .= '<li>' . t('current year') . '</li>';
      $output .= '<li>' . t('current month') . '</li>';
      $output .= '<li>' . t('current day') . '</li>';
      $output .= '<li>' . t('current user roles') . '</li>';
      $output .= '<li>' . t('custom classe') . '</li>';
      $output .= '</ol>';
      $output .= '<h3>' . t('INSTALLATION') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('Download and place unzipped folder in /modules/contrib directory.') . '</li>';
      $output .= '<li>' . t('Go to admin/modules path and install this module.') . '</li>';
      $output .= '<li>' . t('Now Extra body classes module is ready to use.') . '</li>';
      $output .= '</ol>';
      $output .= '<h3>' . t('HOW TO USE IT') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('Once this module is successfully installed, go to admin/config/content/extra-body-classes path.') . '</li>';
      $output .= '<li>' . t('If user needs to add current date time stamp as a body class then select Date check box.') . '</li>';
      $output .= '<li>' . t('If user needs to add current year as a body class then select Year check box.') . '</li>';
      $output .= '<li>' . t('If user needs to add current month as a body class then select Month check box.') . '</li>';
      $output .= '<li>' . t('If user needs to add current day as a body class then select Day check box.') . '</li>';
      $output .= '<li>' . t('If user needs to add current user roles as a body class then select Current user roles check box.') . '</li>';
      $output .= '<li>' . t('If user needs to add custom class then provide it into Add custom classes filed.') . '</li>';
      $output .= '<li>' . t('Save it') . '</li>';
      $output .= '</ol>';
      return $output;
  }
}