function exclude_node_title_help in Exclude Node Title 8
Implements hook_help().
File
- ./
exclude_node_title.module, line 18 - Primarily Drupal hooks and global API functions to exclude node titles.
Code
function exclude_node_title_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.exclude_node_title':
$output = '';
$output .= '<h3>' . t('About') . '</h3>';
$output .= '<p>' . t('Provides the option of excluding node title(s) from display by individual node or by bundle and view mode.') . '</p>';
$output .= '<h3>' . t('Uses') . '</h3>';
$output .= '<dl>';
$output .= '<dt>' . t('Exclude title(s) by bundle and view mode') . '</dt>';
$output .= '<dd>' . t('<em>All nodes..</em> excludes the Node title from all of the node displays using the View Mode(s) you select.') . '</dd>';
$output .= '<dt>' . t('Exclude title(s) on a node-by-node basis') . '</dt>';
$output .= '<dd>' . t('<em>User defined nodes..</em> does not, by default, hide any Node title. However, it provides users with the permission to exclude node title a checkbox on the node edit form that allows them to exclude node titles, from the View Modes selected in this form, on a node-by-node basis.') . '</dd>';
$output .= '<dt>' . t('Exclude title(s) by role') . '</dt>';
$output .= '<dd>' . t('You may exclude title(s) by role using the <a href=":permission">Use exclude node title</a> permission.', [
':permission' => 'http://contribd8.dev/admin/people/permissions#module-exclude_node_title',
]) . '</dd>';
$output .= '</dl>';
return $output;
}
}