You are here

function content_access_help in Content Access 7

Same name and namespace in other branches
  1. 8 content_access.module \content_access_help()

Implements hook_help().

File

./content_access.module, line 10
Content access module file.

Code

function content_access_help($path, $arg) {
  switch ($path) {
    case 'admin/help#content_access':
      $output = '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The <strong>Content Access</strong> module let you content manage access permission in a flexible and transparant way.') . '</p>';
      $output .= '<h3>' . t('Use') . '</h3>';
      $output .= '<p>' . t('It provides two new permissions: <em>view all</em> (allows anyone to view the content) and <em>view own</em> (allows  only the content creator to see his/her own content). It also gives access to the existing core permissions <em>edit</em> and <em>delete</em> on the same settings page.') . '</p>';
      $output .= '<p>' . t('It provides the following modalities:') . '</p><ul>';
      $output .= '<li>' . t('Each <em>!content-type</em> can have its own default content access settings by role.', array(
        '!content-type' => l('content type', 'admin/structure/types'),
      )) . '</li>';
      $output .= '<li>' . t('Optionally you can enable  role based access control settings per <em>content node</em>.') . '</li>';
      $output .= '<li>' . t('Access control can be further customized per <em>user</em> if you have the <strong>!acl</strong> module enabled.', array(
        '!acl' => l('ACL', 'https://www.drupal.org/project/acl/'),
      )) . '</li></ul>';
      if (function_exists('advanced_help_hint_docs')) {
        $output .= '<p>' . advanced_help_hint_docs('content_access', 'https://www.drupal.org/docs/7/modules/content-access', TRUE) . '</p>';
      }
      else {
        $output .= '<p>' . t('If you install and enable the module <strong>!url</strong>, you will get more help for <strong>Content Access</strong>.', array(
          '!url' => l('Advanced Help Hint', 'https://www.drupal.org/project/advanced_help_hint'),
        )) . '</p>';
      }
      return $output;
  }
}