You are here

node_limit.module in Node Limit 8

Same filename in this branch
  1. 8 node_limit.module
  2. 8 old/node_limit.module
Same filename and directory in other branches
  1. 6 node_limit.module
  2. 7 node_limit.module

Contains node_limit.module.

File

node_limit.module
View source
<?php

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

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

    // Main module help for the node_limit module.
    case 'help.page.node_limit':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Allows admins to restrict the number of nodes that may be created.') . '</p>';
      return $output;
  }
}

/**
 * Implements hook_theme().
 */
function node_limit_theme() {
  $theme = [];
  return $theme;
}

Functions

Namesort descending Description
node_limit_help Implements hook_help().
node_limit_theme Implements hook_theme().