function domain_check_for_update in Domain Access 7.3
Checks for tables not compatible with 7.x.3 and provides standard messages.
2 calls to domain_check_for_update()
- domain_modules_enabled in ./
domain.module - Implements hook_modules_enabled().
- domain_overview_form in ./
domain.admin.inc - Create an overview form for sorting domains and other quick actions.
File
- ./
domain.module, line 4101 - Core module functions for the Domain Access suite.
Code
function domain_check_for_update() {
$list = domain_update_module_check();
if (!empty($list)) {
$messages = array();
domain_update_messages($messages, $list);
if (!drupal_is_cli()) {
drupal_set_message(theme('item_list', array(
'items' => $messages,
)), 'error', FALSE);
}
elseif (function_exists('drush_print')) {
foreach ($messages as $message) {
drush_print(" * {$message}");
}
drush_print(dt(" ** Run 'drush domain-repair' to update these tables."));
}
}
}