You are here

function amazons3_help in AmazonS3 7

Implements hook_help().

File

./amazons3.module, line 54
Provides S3 stream wrapper

Code

function amazons3_help($path, $arg) {
  switch ($path) {
    case 'admin/config/media/amazons3':
      if (module_exists('awssdk_ui')) {
        return '<p>' . t('Amazon Web Services authentication can be configured at the <a href="@awssdk_config">AWS SDK configuration page</a>.', array(
          '@awssdk_config' => url('admin/config/media/awssdk'),
        )) . '</p>';
      }
      else {
        return '<p>' . t("Enable 'AWS SDK for PHP UI' module to configure your Amazon Web Services authentication. Configuration can also be defined in the \$conf array in settings.php.", array(
          '@awssdk_config' => url('admin/config/media/awssdk'),
        )) . '</p>';
      }
      break;
  }
}