function media_update_dependencies in D7 Media 7.4
Same name and namespace in other branches
- 7 media.install \media_update_dependencies()
- 7.2 media.install \media_update_dependencies()
- 7.3 media.install \media_update_dependencies()
Implements hook_update_dependencies().
File
- ./
media.install, line 78 - Install, update and uninstall functions for the Media module.
Code
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.
$dependencies['media'][7016] = array(
'field' => 7002,
'rules' => 7205,
);
// Those updates require {file_type} table created.
$dependencies['media'][7200] = array(
'file_entity' => 7207,
);
// Require {file_type}.mimetypes column before updating them.
$dependencies['media'][7208] = array(
'file_entity' => 7210,
);
$dependencies['media'][7212] = array(
'file_entity' => 7210,
);
return $dependencies;
}