function disqus_help in Disqus 5
Same name and namespace in other branches
- 8 disqus.module \disqus_help()
- 6 disqus.module \disqus_help()
- 7 disqus.module \disqus_help()
Implementation of hook_help().
File
- ./
disqus.module, line 6
Code
function disqus_help($section) {
switch ($section) {
case 'admin/help#disqus':
$output = '<p>' . t('Uses the <a href="@disqus">Disqus</a> comment system to enhance comments.', array(
'@disqus' => 'http://disqus.com',
)) . '</p>';
$output .= '<h3>' . t('Installation') . '</h3>';
$output .= '<ol><li>' . t('Register your site information at <a href="http://disqus.com">Disqus</a>') . '</li>';
$output .= '<li>' . t('In the <a href="@configuration">Disqus configuration</a>, set the domain to what you registered with Disqus, and what node types you would like to have comments', array(
'@configuration' => url('admin/settings/disqus'),
)) . '</li>';
$output .= '<li>' . t('Visit the <a href="@permissions">permissions</a>, and set which users you would like to have the ability to view Disqus threads (recommended for role)', array(
'@permissions' => url('admin/user/access', NULL, 'module-disqus'),
)) . '</li></ol>';
return $output;
case 'admin/settings/disqus':
return '<p>' . t('The following provides the configuration options for the <a href="@disqus">Disqus</a> comment web service.', array(
'@disqus' => 'http://disqus.com',
)) . '</p>';
}
}