You are here

function acl_update_4 in ACL 6

Same name and namespace in other branches
  1. 5 acl.install \acl_update_4()
  2. 7 acl.install \acl_update_4()

Put back acl_node(nid) index for deleting nodes and clean up {acl_node}.

File

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

Code

function acl_update_4() {
  $ret = array();
  db_add_index($ret, 'acl_node', 'nid', array(
    'nid',
  ));
  $ret[] = update_sql("DELETE FROM {acl_node} WHERE nid NOT IN (SELECT nid FROM {node})");
  return $ret;
}