You are here

function comment_notify_update_2 in Comment Notify 5

Same name and namespace in other branches
  1. 5.2 comment_notify.install \comment_notify_update_2()

File

./comment_notify.install, line 42

Code

function comment_notify_update_2() {

  // Set module weight for my module
  $result = db_query("UPDATE {system} SET weight = 10 WHERE name = 'comment_notify'");
  drupal_set_message($results);
  if ($result) {
    drupal_set_message(t('comment_notify module weight config update successfully.'));
  }
  else {
    drupal_set_message(t('comment_notify module weight config update unsuccessful.'), 'error');
  }
  $ret[] = $result;
  return $ret;
}