function domain_update_module_check in Domain Access 7.3
Checks to see if any dependent modules have a domain_id 0 record left.
Return value
An array of matching modules, with the human readable name and an array of tables that require an update as values for each entry, keyed by module name.
5 calls to domain_update_module_check()
- DomainUpdateTest::testDomainUpdate in tests/
domain.test - domain_check_for_update in ./
domain.module - Checks for tables not compatible with 7.x.3 and provides standard messages.
- domain_repair_form in ./
domain.admin.inc - Repairs and updates instances of domain_id 0 after the update to 7.x.3.
- domain_requirements in ./
domain.install - Checks module requirements.
- drush_domain_repair in ./
domain.drush.inc - Replaces domain_id 0 records with the default domain.
File
- ./
domain.module, line 3983 - Core module functions for the Domain Access suite.
Code
function domain_update_module_check() {
$list = array();
$modules = system_rebuild_module_data();
$dependencies = $modules['domain']->required_by;
$enabled_dependencies = array_intersect_key($dependencies, module_list());
if (empty($enabled_dependencies)) {
return $list;
}
foreach ($enabled_dependencies as $module => $data) {
module_load_install($module);
if ($schema = module_invoke($module, 'schema')) {
if ($tables = domain_test_schema($schema)) {
$list[$module]['name'] = $modules[$module]->info['name'];
$list[$module]['tables'] = $tables;
}
}
}
return $list;
}