function uc_store_update_7007 in Ubercart 7.3
Ensures Rules and Views are installed.
File
- uc_store/
uc_store.install, line 266 - Install, update, and uninstall functions for the uc_store module.
Code
function uc_store_update_7007() {
$modules = array(
'rules',
'views',
);
module_enable($modules);
foreach ($modules as $module) {
if (!module_exists($module)) {
throw new DrupalUpdateException(t('Rules and Views are now dependencies of Ubercart, but are not currently available. Please download them to sites/all/modules and run update.php again.'));
}
}
}