summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorunknown2013-07-17 17:33:27 (GMT)
committer unknown2013-07-17 17:33:27 (GMT)
commita01d976d0935453cc01e0f72e7e81936fd366611 (patch)
tree67dd7fff47b35fbaacace70e490cef06824ecb71
parent7c45782ce2b00f7039869dcdddc0b50cd3243241 (diff)
Issue #2002890 by Devin Carlson: add a file_entity dependency during the update.
-rw-r--r--media.install6
1 files changed, 6 insertions, 0 deletions
diff --git a/media.install b/media.install
index adca24d..ae205d4 100644
--- a/media.install
+++ b/media.install
@@ -93,6 +93,12 @@ function media_uninstall() {
* Implements hook_update_dependencies().
*/
function media_update_dependencies() {
+ // media_update_7200() needs to convert old 'media' permissions to new 'file'
+ // permissions, so it must run before file_entity_7208 which updates existing
+ // 'file' permissions to be split per file type.
+ $dependencies['file_entity'][7208] = array(
+ 'media' => 7200,
+ );
// This update function requires field_update_7002() to run before it since
// the field_bundle_settings variable has been split into separate variables
// per entity type and bundle.