You are here

pm.module in Drupal PM (Project Management) 4.x

Same filename and directory in other branches
  1. 8 pm.module
  2. 7.3 pm.module
  3. 7 pm.module
  4. 7.2 pm.module

Contains pm_board.module.

File

pm.module
View source
<?php

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

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

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

/**
 * Implements hook_theme().
 */
function pm_theme() {
  $theme = [];
  $theme['pm_dashboard'] = [
    'render element' => 'elements',
    'template' => 'pm-dashboard',
    'variables' => [
      'items' => [],
    ],
  ];
  return $theme;
}

Functions

Namesort descending Description
pm_help Implements hook_help().
pm_theme Implements hook_theme().