You are here

function discussthis_help in Discuss This! 5

Same name and namespace in other branches
  1. 6 discussthis.module \discussthis_help()
  2. 7.2 discussthis.module \discussthis_help()
  3. 7 discussthis.module \discussthis_help()

Display help and module information

Parameters

section which section of the site we're displaying help for:

Return value

help text for section

File

./discussthis.module, line 10

Code

function discussthis_help($section = '') {
  $output = '';
  switch ($section) {
    case 'admin/help#discussthis':
      $output = '<p>' . t('Displays links to discussion forums for a given node. Administrators can select the types of nodes for which this is enabled, and for each of these, which forum new topics should be created in.') . '</p>';
      $output .= '<ul><li><a href="admin/settings/discussthis">Discuss This configuration settings</a></li>';
      $output .= '<li><a href="admin/user/access#module-discussthis">Discuss This permissions configuration</a></li></ul>';
      $output .= filter_filter('process', 2, null, file_get_contents(dirname(__FILE__) . '/README.txt'));
      break;
  }
  return $output;
}