| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id: mm_s3.module,v 1.1.2.2.2.21 2009/10/30 15:23:00 arthuregg Exp $ |
// $Id: mm_s3.module,v 1.1.2.2.2.22 2009/11/01 15:38:38 arthuregg Exp $ |
| 4 |
|
|
| 5 |
define('ACL_PRIVATE', 'private'); |
define('ACL_PRIVATE', 'private'); |
| 6 |
define('ACL_PUBLIC_READ', 'public-read'); |
define('ACL_PUBLIC_READ', 'public-read'); |
| 237 |
'#description' => t('Set the permissions on your uploaded files.'), |
'#description' => t('Set the permissions on your uploaded files.'), |
| 238 |
); |
); |
| 239 |
|
|
| 240 |
|
$form['mm_s3']['mm_s3_drupal_file_path'] = array( |
| 241 |
|
'#type' => 'checkbox', |
| 242 |
|
'#title' => t('Use full Drupal filepath on S3'), |
| 243 |
|
'#description' => t('Selecting this will store your files on S3 with the Drupal directory path as |
| 244 |
|
part of the file name- for example <em>sites/default/files/myfile.jpg</em> This is useful if you |
| 245 |
|
are concerned about duplicate filenames or using URL rewriting to serve files from Amazon'), |
| 246 |
|
'#default_value' => $configuration['mm_s3_drupal_file_path'] ? $configuration['mm_s3_drupal_file_path'] : false, |
| 247 |
|
); |
| 248 |
|
|
| 249 |
$form['mm_s3']['mm_s3_delete_source'] = array( |
$form['mm_s3']['mm_s3_delete_source'] = array( |
| 250 |
'#type' => 'checkbox', |
'#type' => 'checkbox', |
| 251 |
'#title' => t('Use full Drupal filepath on S3'), |
'#title' => t('Use full Drupal filepath on S3'), |