function casetracker_update_17 in Case Tracker 5
File
- ./
casetracker.install, line 492
Code
function casetracker_update_17() {
// if the user hasn't browsed to admin/modules before updating, casetracker_mail
// won't be found, so we'll have to fake it's existence in the system table first.
db_query("INSERT INTO {system} SET filename = '%s', name = 'casetracker_mail', type = 'module'", drupal_get_path('module', 'casetracker') . '/casetracker_mail.module');
// thanks killes.
include_once drupal_get_path('module', 'casetracker_mail') . '/casetracker_mail.module';
variable_set('casetracker_mail_address', variable_get('casetracker_mailbox', variable_get('site_mail', ini_get('sendmail_from'))));
variable_set('casetracker_mail_subject', variable_get('casetracker_notification_email_subject', _casetracker_mail_subject()));
variable_set('casetracker_mail_case_message', variable_get('casetracker_notification_email_case_message', _casetracker_mail_case_message()));
variable_set('casetracker_mail_comment_message', variable_get('casetracker_notification_email_comment_message', _casetracker_mail_comment_message()));
variable_del('casetracker_mailbox');
variable_del('casetracker_notification_email_subject');
variable_del('casetracker_notification_email_case_message');
variable_del('casetracker_notification_email_comment_message');
}