You are here

function privatemsg_update_6002 in Privatemsg 6.2

Same name and namespace in other branches
  1. 6 privatemsg.install \privatemsg_update_6002()

File

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

Code

function privatemsg_update_6002() {
  $ret = array();

  // update_sql does not support parameters, we need to use db_query
  $sql = "UPDATE {blocks} SET cache = %d WHERE module='privatemsg'";
  $result = db_query($sql, BLOCK_NO_CACHE);
  $ret[] = array(
    'success' => $result !== FALSE,
    'query' => check_plain($sql),
  );
  return $ret;
}