function comment_notify_update_3 in Comment Notify 5
Same name and namespace in other branches
- 5.2 comment_notify.install \comment_notify_update_3()
File
- ./
comment_notify.install, line 59
Code
function comment_notify_update_3() {
// Set module weight for my module
$result = db_query("UPDATE {variable} SET value = replace(value, '%', '!') WHERE name = 'comment_notify_default_mailtext'");
drupal_set_message($results);
if ($result) {
drupal_set_message(t('comment_notify mail text migration successful.'));
}
else {
drupal_set_message(t('comment_notify mail text migration unsuccessful.'), 'error');
}
$ret[] = $result;
return $ret;
}