You are here

function s3fs_help in S3 File System 7

Same name and namespace in other branches
  1. 7.3 s3fs.module \s3fs_help()
  2. 7.2 s3fs.module \s3fs_help()

Implements hook_help().

File

./s3fs.module, line 113
Sets up the S3fsStreamWrapper class to be used as a Drupal file system.

Code

function s3fs_help($path, $arg) {
  $actions = 'admin/config/media/s3fs/actions';
  $settings = 'admin/config/media/s3fs';
  if ($path == $settings) {
    $msg = t('To perform actions, such as refreshing the metadata cache, visit the !link.', array(
      '!link' => l(t('actions page'), $actions),
    ));
    return "<p>{$msg}</p>";
  }
  elseif ($path == $actions) {
    $msg = t('These are the actions that you can perform upon S3 File System.');
    $msg .= '<br>' . t('To change your settings, visit the !link.', array(
      '!link' => l(t('settings page'), $settings),
    ));
    return "<p>{$msg}</p>";
  }
}