You are here

redhen.module in RedHen CRM 8

Same filename and directory in other branches
  1. 7 redhen.module

Contains redhen.module..

File

redhen.module
View source
<?php

/**
 * @file
 * Contains redhen.module..
 */
use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function redhen_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the redhen module.
    case 'help.page.redhen':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('RedHen CRM') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_toolbar().
 */
function redhen_toolbar() {
  $items['redhen'] = [
    '#type' => 'toolbar_item',
    '#attached' => [
      'library' => [
        'redhen/drupal.redhen.toolbar',
      ],
    ],
  ];
  return $items;
}

Functions

Namesort descending Description
redhen_help Implements hook_help().
redhen_toolbar Implements hook_toolbar().