You are here

function comment_perm_help in Comment Permissions 7.2

Implements hook_help().

File

./comment_perm.module, line 11
Control commenting permissions by role and by node type.

Code

function comment_perm_help($path, $arg) {
  $output = '';
  switch ($path) {
    case 'admin/help#comment_perm':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The Comment Permissions module enables control of commenting by user role and by node type.
        Additional user permissions for selected node types are added to the user access system so you can configure commenting with more control
        than Drupal core provides.') . '</p>';
      $output .= '<p>' . t('This module is not entirely rewriting access system for comment module.
        Instead, it\'s overriding it, by providing an additional access level.
        To make it working you need first to give access permission for comment
        module, after, you can customize permission access level per content type
        or user, in comment_perm module.') . '</p>';
      $output .= '<h3>' . t('How it works') . '</h3>';
      $output .= '<dl>';
      $output .= '<dt><strong>' . t('Administration » Configuration » System » Comment permissions') . '</strong></dt>';
      $output .= '<dd>' . t('Select and enable the extended comment permissions for certain content types.') . '</dd>';
      $output .= '</dl>';
      $output .= '<dl>';
      $output .= '<dt><strong>' . t('Administration » People » Permissions') . '</strong></dt>';
      $output .= '<dd>' . t('Configure which roles can access/post comments for enabled content types.') . '</dd>';
      $output .= '<dd>' . t('1. Give needed permissions access for comment module') . '</dd>';
      $output .= '<dd>' . t('2. Give needed permissions access per content type for comment_perm module') . '</dd>';
      $output .= '</dl>';
      break;
  }
  return $output;
}