function access_unpublished_help in Access unpublished 6
Implements hook_help().
File
- ./
access_unpublished.module, line 46 - This module is used to allow access to unpublished nodes
Code
function access_unpublished_help($path, $arg) {
$output = '';
switch ($path) {
case "admin/settings/access_unpublished":
$output = '<p>' . t('Access unpublished creates a hash value for unpublished nodes, to enable users the view the node, even if they do not have the correct privileges. After setting the correct permissions this module provides a direct access URL for unpublished content. Using the provided URL this content can be viewed by any role (including anonymous user) if this is specified in the !permissions of your site.', array(
'!permissions' => l(t('permissions'), 'admin/user/permissions'),
)) . '</p>';
$output .= '<p>' . t('The URL containing the hash value is generated using the node id combined with the private key you specify here. This URL is displayed after saving the node and when the author views the node.') . '</p>';
$output .= '<p>' . t("NOTE: Changing the private key and/or the query string will render URL's that were generated before useless.") . '</p>';
break;
}
return $output;
}