You are here

function crazyegg_help in Crazy Egg Integration 8

Same name and namespace in other branches
  1. 6 crazyegg.module \crazyegg_help()
  2. 7 crazyegg.module \crazyegg_help()

Implements hook_help(). Shows help info on `/admin/help/crazyegg` page

File

./crazyegg.module, line 23

Code

function crazyegg_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.crazyegg':
      return t('<img src="@logo" style="float: right;" alt="Crazy Egg">' . '<strong>Crazy Egg</strong> is an analytics tool that provides website heatmaps and eye tracking.<br/><br/>' . 'Drupal module repository: <a href="@module_url">www.drupal.org/project/crazyegg</a><br/>' . 'Official website: <a href="@ce_url">crazyegg.com</a><br/>' . 'Support: <a href="mailto:@support_email">support@crazyegg.com</a><br/><br/><hr/><br/>', [
        '@ce_url' => 'https://www.crazyegg.com',
        '@module_url' => 'https://www.drupal.org/project/crazyegg',
        '@support_email' => 'support@crazyegg.com',
        '@logo' => 'https://ceblog.s3.amazonaws.com/wp-content/uploads/2015/06/Crazy-Egg-logo-small.png',
      ]);
  }
}