Permalink
Browse files

API CHANGE Remove File->uploadMetadataFields(), use new UploadField i…

…nstead
  • Loading branch information...
1 parent 4345eaa commit fb3c18d6d22926f41a9b2de7fc4268d5c398be55 @chillu chillu committed Mar 2, 2012
Showing with 0 additions and 17 deletions.
  1. +0 −17 filesystem/File.php
View
@@ -862,23 +862,6 @@ function validate() {
return new ValidationResult(true);
}
-
- /**
- * Allow custom fields for uploads in {@link AssetAdmin}.
- * Similar to {@link getCMSFields()}, but a more restricted
- * set of fields which can be reliably set on any file type.
- *
- * Needs to be enabled through {@link AssetAdmin::$metadata_upload_enabled}
- *
- * @return FieldList
- */
- function uploadMetadataFields() {
- $fields = new FieldList();
- $fields->push(new TextField('Title', $this->fieldLabel('Title')));
- $this->extend('updateUploadMetadataFields', $fields);
-
- return $fields;
- }
/**
* @var Array Only use lowercase extensions in here.

1 comment on commit fb3c18d

Owner

sminnee commented on fb3c18d Mar 5, 2012

Good to see dodgy APIs being rendered unnecessary.

Please sign in to comment.