You are here

function privatemsg_update_6005 in Privatemsg 6.2

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

Enable delete permission for all users that are allowed to read them.

File

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

Code

function privatemsg_update_6005() {
  $ret = array();
  $ret[] = update_sql("UPDATE {permission} SET perm = REPLACE(perm, 'read privatemsg', 'read privatemsg, delete privatemsg') WHERE perm LIKE '%read privatemsg%'");
  return $ret;
}