function organigrams_help in Organigrams 8
Same name and namespace in other branches
- 8.2 organigrams.module \organigrams_help()
- 7 organigrams.module \organigrams_help()
Implements hook_help().
File
- ./
organigrams.module, line 20 - Extends Taxonomy to create organigrams.
Code
function organigrams_help($route_name, RouteMatchInterface $route_match) {
switch ($route_name) {
case 'help.page.organigrams':
$help = t('Organigrams represent visualizations of hierarchies in organizations. An organigram contains multiple items which can be related in various ways to each other.');
$help .= '<p>';
$help .= t('Organigrams have multiple display options:');
$help .= '<ol>';
$help .= '<li>' . t('<strong>Dedicated page</strong><br />A dedicated page is available at <i>/organigram/%machine_name</i>.') . '</li>';
$help .= '<li>' . t('<strong>Block</strong><br />The organigram blocks can be found on the <a href=":blocks">blocks administration page</a>.', [
':blocks' => Url::fromRoute('block.admin_display')
->toString(),
]) . '</li>';
$help .= '<li>' . t('<strong>Token</strong> (requires <a href="@token_filter">Token filter</a>)<br />Tokens can be used to insert organigrams in content fields. The token names are displayed beneath the names in this list and look like this: <i>[organigrams:%machine_name]</i>. Just copy and paste this token in your content to insert the organigram.', [
'@token_filter' => 'https://www.drupal.org/project/token_filter',
]) . '</li>';
$help .= '</ol></p>';
return '<p>' . $help . '</p>';
}
}