You are here

function disqus_help in Disqus 7

Same name and namespace in other branches
  1. 8 disqus.module \disqus_help()
  2. 5 disqus.module \disqus_help()
  3. 6 disqus.module \disqus_help()

Implements hook_help().

File

./disqus.module, line 26
The Disqus Drupal module.

Code

function disqus_help($path, $arg) {
  switch ($path) {
    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/config/services/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/people/permissions', array(
          'fragment' => 'module-disqus',
        )),
      )) . '</li></ol>';
      return $output;
    case 'admin/config/services/disqus':
      return '<p>' . t('The following provides the general configuration options for the <a href="@disqus">Disqus</a> comment web service.', array(
        '@disqus' => 'http://disqus.com',
      )) . '</p>';
  }
}