You are here

function comment_notify_update_3 in Comment Notify 5.2

Same name and namespace in other branches
  1. 5 comment_notify.install \comment_notify_update_3()

File

./comment_notify.install, line 96
comment_notify.install.

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;
}