function s3fs_cors_field_widget_info in S3 File System CORS Upload 7
Implements hook_field_widget_info().
File
- ./
s3fs_cors.module, line 94 - Allow uploading of files directly to AmazonS3 via the browser using CORS.
Code
function s3fs_cors_field_widget_info() {
return array(
's3fs_cors' => array(
'label' => t('S3 CORS File Upload'),
'field types' => array(
'file',
'image',
),
'behaviors' => array(
'multiple values' => FIELD_BEHAVIOR_CUSTOM,
'default value' => FIELD_BEHAVIOR_NONE,
),
// Make sure our widget doesn't take over the File widget as the default.
'weight' => 999,
),
);
}