You are here

jdrupal.module in jDrupal 8.0.x

Same filename and directory in other branches
  1. 8 jdrupal.module
  2. 7 jdrupal.module

Contains jdrupal.module..

File

jdrupal.module
View source
<?php

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

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

    // Main module help for the jdrupal module.
    case 'help.page.jdrupal':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The jDrupal 8 module.') . '</p>';
      return $output;
    default:
  }
}

/**
 * Implements hook_menu().
 */
function jdrupal_menu() {
  $items['admin/config/services/jdrupal'] = array(
    'title' => 'jDrupal',
    'description' => 'The jDrupal config page.',
    'route_name' => 'jdrupal.jdrupal_config',
  );
  return $items;
}

Functions

Namesort descending Description
jdrupal_help Implements hook_help().
jdrupal_menu Implements hook_menu().