You are here

function contact_update_7002 in Contact 6.2

Same name and namespace in other branches
  1. 7.2 contact.install \contact_update_7002()

Enable the 'access user contact forms' for registered users by default.

File

./contact.install, line 152
Install, update and uninstall functions for the contact module.

Code

function contact_update_7002() {
  $ret = array();
  $ret[] = update_sql("UPDATE {permission} SET perm = CONCAT(perm, ', access user contact forms') WHERE perm NOT LIKE '%access user contact forms%' AND rid = " . DRUPAL_AUTHENTICATED_RID);
  return $ret;
}