function media_update_7202 in D7 Media 7.4
Same name and namespace in other branches
- 7.2 media.install \media_update_7202()
- 7.3 media.install \media_update_7202()
Enable the Views module if it is not already enabled.
File
- ./
media.install, line 625 - Install, update and uninstall functions for the Media module.
Code
function media_update_7202() {
module_enable(array(
'views',
));
if (!module_exists('views')) {
throw new DrupalUpdateException('The <a href="https://drupal.org/project/views">Views module</a> must be downloaded and available for Media updates to proceed.');
}
}