You are here

function upload_help in Drupal 5

Same name and namespace in other branches
  1. 4 modules/upload.module \upload_help()
  2. 6 modules/upload/upload.module \upload_help()

Implementation of hook_help().

File

modules/upload/upload.module, line 12
File-handling and attaching files to nodes.

Code

function upload_help($section) {
  switch ($section) {
    case 'admin/help#upload':
      $output = '<p>' . t('The upload module allows users to upload files to the site. The ability to upload files to a site is important for members of a community who want to share work. It is also useful to administrators who want to keep uploaded files connected to a node or page.') . '</p>';
      $output .= '<p>' . t('Users with the upload files permission can upload attachments. You can choose which post types can take attachments on the content types settings page. Each user role can be customized for the file size of uploads, and the dimension of image files.') . '</p>';
      $output .= '<p>' . t('For more information please read the configuration and customization handbook <a href="@upload">Upload page</a>.', array(
        '@upload' => 'http://drupal.org/handbook/modules/upload/',
      )) . '</p>';
      return $output;
    case 'admin/settings/upload':
      return '<p>' . t('Users with the <a href="@permissions">upload files permission</a> can upload attachments. Users with the <a href="@permissions">view uploaded files permission</a> can view uploaded attachments. You can choose which post types can take attachments on the <a href="@types">content types settings</a> page.', array(
        '@permissions' => url('admin/user/access'),
        '@types' => url('admin/settings/types'),
      )) . '</p>';
  }
}