function upload_help in Drupal 6
Same name and namespace in other branches
- 4 modules/upload.module \upload_help()
- 5 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($path, $arg) {
switch ($path) {
case 'admin/help#upload':
$output = '<p>' . t('The upload module allows users to upload files to the site. The ability to upload files 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 posts.') . '</p>';
$output .= '<p>' . t('Users with the upload files permission can upload attachments to posts. Uploads may be enabled for specific content types on the content types settings page. Each user role can be customized to limit or control the file size of uploads, or the maximum dimension of image files.') . '</p>';
$output .= '<p>' . t('For more information, see the online handbook entry for <a href="@upload">Upload module</a>.', array(
'@upload' => 'http://drupal.org/handbook/modules/upload/',
)) . '</p>';
return $output;
case 'admin/settings/uploads':
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/permissions', array(
'fragment' => 'module-upload',
)),
'@types' => url('admin/content/types'),
)) . '</p>';
}
}