function acl_update_4 in ACL 7
Same name and namespace in other branches
- 5 acl.install \acl_update_4()
- 6 acl.install \acl_update_4()
Put back acl_node(nid) index for deleting nodes and clean up {acl_node}.
File
- ./
acl.install, line 139 - 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;
}