Posted by recrit on August 17, 2012 at 6:44pm
| Download | Size | md5 hash |
|---|---|---|
| commerce_file-7.x-1.0-beta4.tar.gz | 68.45 KB | 1dab0f1f7275f081ed51fd3d70a66f13 |
| commerce_file-7.x-1.0-beta4.zip | 86.78 KB | 385d2588358059baa6796873900bc21f |
Last updated: August 17, 2012 - 18:47
Release notes
The following details all changes since the previous release. You must run update.php after upgrading to this version.
Changes / Bug Fixes / Improvements
- License Type config page at type config page accessible at "admin/commerce/config/file-licenses"
- Improved EnityFieldQuery used in commerce_file_license_load_by_property() to fix access denied download issues (#1626806). This update was to address http://drupal.org/node/1597378
- Updated field formatter to provide a download link if the user has access. This updated allowed for the implementation of hook_field_access() to be removed. All download access is still controlled by hook_file_download().
- Improved field widget access limits to add a mode for inherit and unlimited, or set a custom value. (#1426086: Allow greater specificity in license durations, #1708378: Improve field widget for better input of inherited and unlimited access limits)
- Unlocked the Commerce File field on the license entity to allow editing while still block the removal of the field. (#1394892: License file field allowed extensions should not be a default list)
- Simplified issue license rules to a single rule on checkout complete that issues licenses as 'active' status. The rules can be customized to meet a site's requirements.
- Order admin interface for related licenses and files for an order with the ability to sync license limits to the current product's file limits. (#1733364: Create an order admin interface for file licenses)
- Improved license limit info defined in hook_commerce_file_license_info() to merge defaults and include a validation callback for entity metadata
- License entity now supports Rules entity create action
- Improved field type's property info for file and access limits
- Views integration for log table
New Hooks
@ref commerce_file.api.php
- hook_commerce_file_content_headers_alter() - Allows other modules to alter the returned headers for a Commerce File.
- hook_commerce_file_download_unlicensed_access() - Control unlicensed download access to Commerce files. (#1423516: Allow altering of file access logic)
New Contrib Module Integrations
- File Field Paths (#1532236: Adding a token into the "file directory" path for an attached commerce file)
- Feeds (#1162602: Feeds support for Commerce File)
Significant related commits
- baa53fa update field property info with a validation callback similar to file field
- 88967a4 updated field property info for 'file' to use 'entity_metadata_field_file_get' and 'entity_metadata_field_file_set' similar to core file field
- 6460bd9 Issue #1162602: Feeds support for Commerce File by drupallerina: added initial feeds support for file and access limits
- c98ed63 rework of license limit properties to include defaults and a validation callback for entity api
- c992c35 Issue #1733364: Create an order admin interface for file licenses by recrit: initial commit to implement an order admin interface for file licenses
- d5e93d1 simplified issue license rules to a single after checkout complete rule that issues licenses as 'active' status; rules can be customized to meet a site's requirements
- 3994ff8 Issue #1532236: Adding a token into the "file directory" path for an attached commerce file by toby53: Added filefield_paths integration by implementing hook_filefield_paths_field_type_info() and revamping how the data
- 6562af0 Issue #1426086: Allow greater specificity in license durations by rszrama: improved duration input to accept a value and a unit to allow more flexibilty
- 685fb23 added _commerce_file_get_file_references() to get raw results for hook_file_download() - @see http://drupal.org/node/1597378
- 6beea67 Issue #1708378: Improve field widget for better input of inherited and unlimited access limits by recrit: added initial revamp to field widget elements to add a mode for inherit and unlimited, or set a custom value
- abdf715 Issue #1626806: Domain Access Module gives "Access Denied" by d3vo: added metaData to run get licenses entity field query as user 1 to bypass access checks @see http://drupal.org/node/1
- 14b612c removing hook_field_access since view access is handled by the formatter
- 6859ad1 Issue #1423516: Allow altering of file access logic by Jody Lynn: added a hook to allow other module to grant access to the protected file if the user does not have a license for it.
- b5ab63b code refactoring on hook_file_download to check for any commerce file references first before other checks
- 0545368 revamped hook_field_access to only check access for non-view operations; revamped 'commerce_file_access_link' formatter to check license access
- 75045cd Issue #1394892 by Intercisa: unlocked the Commerce File field on the license entity to allow editing; added a menu alter to define a custom access
- 4468d4c updated module enabled hook to properly configure all line item types with commerce file fields; added update 7103 to perform configuration for existing installs
- 9abe71a added basic views integration for license logs table
- 0d69ac9 updated hook_file_download to load the first file similar to file_file_download
- d16244c added a hook_commerce_file_content_headers_alter() to allow other modules to alter the returneed content headers for a file
- 7feb11d removing http headers 'Content-Transfer-Encoding' and 'Pragma'
- 91d6e03 updated hook_file_download to always ALLOW access to admin users
- c56e5f6 Issue #1407078 by kristofferwiklund: added dependency for commerce_checkout
- 7d85d3f adding a type config page accessible at admin/commerce/config/file-licenses