You are here

function comment_delete_help in Comment Delete 8

Implements hook_help().

File

./comment_delete.module, line 102
comment_delete.module

Code

function comment_delete_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.comment_delete':
      $output = '<p>' . t('Provides enhanced options for deleting comments and handling reply threads.') . '</p>';
      $output .= '<h3>' . t('Features') . '</h3>';
      $output .= '<dl>';
      $output .= '  <dt>' . t('Permission based comment delete operations suitable for any role.') . '</dt>';
      $output .= '  <dt>' . t('Non-administrators can delete their own comments.') . '</dt>';
      $output .= '  <dt>' . t('Configurable max allowable time to delete comment.') . '</dt>';
      $output .= '  <dt>' . t('Maintains proper reply thread order after deleting parent comment.') . '</dt>';
      $output .= '  <dt>' . t('Soft delete mode to unset values or set comment unpublished.') . '</dt>';
      $output .= '  <dt>' . t('Translatable delete confirmation message.') . '</dt>';
      $output .= '</dl>';
      $output .= '<h3>' . t('Usage') . '</h3>';
      $output .= '<dl>';
      $output .= '  <dt>' . t('Install the module.') . '</dt>';
      $output .= '  <dt>' . t('Set permissions: /admin/people/permissions#module-comment_delete') . '</dt>';
      $output .= '  <dt>' . t('Configure settings: /admin/config/system/comment-delete') . '</dt>';
      $output .= '</dl>';
      return $output;
  }
  return NULL;
}