You are here

function privatemsg_update_6206 in Privatemsg 6.2

Migrate settings from {pm_disable} and delete table.

File

./privatemsg.install, line 736
Install file for privatemsg.module

Code

function privatemsg_update_6206() {
  $ret = array();
  $result = db_query('SELECT * FROM {pm_disable}');
  while ($row = db_fetch_object($result)) {
    privatemsg_set_setting('user', $row->uid, 'disabled', 1);
  }
  db_drop_table($ret, 'pm_disable');
  return $ret;
}