function prevent_homepage_deletion_help in Prevent homepage deletion 8
Implements hook_help().
File
- ./
prevent_homepage_deletion.module, line 17 - Code and functions for the Prevent homepage deletion module.
Code
function prevent_homepage_deletion_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
// Main module help for the prevent_homepage_deletion module.
case 'help.page.prevent_homepage_deletion':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t("This module provides a new permission: delete\n homepage node. Only users with this permission can delete the node that\n is currently configured as the home page of the site. Other users will\n not see the delete-tab, nor the delete option in the content overview.") . '</p>';
return $output;
}
}