node_limit.module in Node Limit 8
Same filename in this branch
Same filename and directory in other branches
Contains node_limit.module.
File
node_limit.moduleView 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
Name | Description |
---|---|
node_limit_help | Implements hook_help(). |
node_limit_theme | Implements hook_theme(). |