function casetracker_update_14 in Case Tracker 5
File
- ./
casetracker.install, line 418
Code
function casetracker_update_14() {
$ret = array();
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
$count = db_num_rows(db_query("SELECT * FROM {node} WHERE type = 'casetracker_case'"));
if ($count >= 1) {
// if there are existing casetracker_case nodes, we'll enable the _basic module.
drupal_set_message(t('Case Tracker has moved its default "case" node type into casetracker_basic.module. You will want to enable that module.'));
}
if (db_result(db_query("SELECT status FROM {system} WHERE name = 'mailhandler'"))) {
drupal_set_message(t('Case Tracker has moved Mailhandler support into casetracker_mail.module. You may need to enable that module.'));
}
if (db_result(db_query("SELECT status FROM {system} WHERE name = 'views'"))) {
drupal_set_message(t('Case Tracker has moved Views support into casetracker_views.module. You may need to enable that module.'));
}
drupal_set_message(t('Case Tracker has moved its XML-RPC and mail sending features into separate modules. You made need to enable those modules.'));
break;
}
return $ret;
}