function _anonymous_publishing_ah_hint in Anonymous Publishing 8
Helper function to show hints about Advanced help.
Code is commented out because it is buggy.
2 calls to _anonymous_publishing_ah_hint()
- anonymous_publishing_cl_help in modules/
anonymous_publishing_cl/ anonymous_publishing_cl.module - Implements hook_help().
- anonymous_publishing_help in ./
anonymous_publishing.module - Implements hook_help().
File
- ./
anonymous_publishing.module, line 134 - Hooks for anonymous publishing parent module.
Code
function _anonymous_publishing_ah_hint() {
/*
$comdoc = Link::fromTextAndUrl(t('community documentation'), Url::fromUri('https://drupal.org/node/2024005'))->toRenderable();
$comdoc = render($comdoc)->__tostring();
if (\Drupal::moduleHandler()->moduleExists('advanced_help')) {
$output = '<p>' . t("Additional help is available in the project's “!readme” file, and the !url.", array(
'!readme' => Link::fromTextAndUrl(t('README'), Url::fromUri('/help/anonymous_publishing/README.md', array(
'attributes' => array('title' => t('Link to README.md.'))
))),
'!url' => $comdoc,
)) . '</p>';
}
else {
$ahlink = Link::fromTextAndUrl(t('Advanced help'), Url::fromUri('https://www.drupal.org/project/advanced_help'))->toRenderable();
$output = '<p>' . t('Also see the !url. If you install the !module module, additional help will be available.', array(
'!url' => $comdoc,
'!module' => render($ahlink)->__tostring(),
)) . '</p>';
}
*/
$output = '';
return $output;
}