| 1 |
<?php |
<?php |
| 2 |
|
|
| 3 |
// $Id: mm_s3.module,v 1.1.2.2.2.22 2009/11/01 15:38:38 arthuregg Exp $ |
// $Id: mm_s3.module,v 1.1.2.2.2.23 2009/11/01 15:44:29 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'); |
| 161 |
'#description' => t('Default permissions on files and buckets created on S3'), |
'#description' => t('Default permissions on files and buckets created on S3'), |
| 162 |
); |
); |
| 163 |
|
|
| 164 |
$form['mm_s3']['mm_s3_server_url'] = array( |
$form['mm_s3']['mm_s3_default_server_url'] = array( |
| 165 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 166 |
'#title' => t('S3 URL'), |
'#title' => t('S3 URL'), |
| 167 |
'#default_value' => variable_get('mm_s3_server_url', "https://s3.amazonaws.com/"), |
'#default_value' => variable_get('mm_s3_default_server_url', "https://s3.amazonaws.com/"), |
| 168 |
'#description' => t('URL to send to amazon. You probably do not need to change this.'), |
'#description' => t('URL to send to amazon. You probably do not need to change this.'), |
| 169 |
); |
); |
| 170 |
|
|
| 271 |
$form['mm_s3']['advanced']['mm_s3_server_url'] = array( |
$form['mm_s3']['advanced']['mm_s3_server_url'] = array( |
| 272 |
'#type' => 'textfield', |
'#type' => 'textfield', |
| 273 |
'#title' => t('Server URL'), |
'#title' => t('Server URL'), |
| 274 |
'#default_value' => $configuration['mm_s3_server_url'] ? $configuration['mm_s3_server_url'] : variable_get('mm_s3_server_url', 'https://s3.amazonaws.com/'), |
'#default_value' => $configuration['mm_s3_server_url'] ? $configuration['mm_s3_server_url'] : variable_get('mm_s3_default_server_url', 'https://s3.amazonaws.com/'), |
| 275 |
'#description' => t('Server URL. Use this to set the URL where your files will be served from. Normally this is s3.amazonaws.com, however you can define your own S3 URL with your DNS service.'), |
'#description' => t('Server URL. Use this to set the URL where your files will be served from. Normally this is s3.amazonaws.com, however you can define your own S3 URL with your DNS service.'), |
| 276 |
); |
); |
| 277 |
|
|