You are here

function privatemsg_update_6006 in Privatemsg 6

Same name and namespace in other branches
  1. 6.2 privatemsg.install \privatemsg_update_6006()

Set the deleted timestamp of all messages to now.

File

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

Code

function privatemsg_update_6006() {
  $ret = array();
  $sql = "UPDATE {pm_index} SET deleted = %d WHERE deleted = 1";
  $result = db_query($sql, time());
  $ret[] = array(
    'success' => $result !== FALSE,
    'query' => check_plain($sql),
  );
  return $ret;
}