/[drupal]/contributions/modules/acl/acl.install
ViewVC logotype

Diff of /contributions/modules/acl/acl.install

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10, Sat Jan 3 19:01:13 2009 UTC revision 1.11, Sun Oct 18 23:37:41 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: acl.install,v 1.9 2008/07/21 15:08:15 salvis Exp $  // $Id: acl.install,v 1.10 2009/01/03 19:01:13 salvis Exp $
3    
4    /**
5     * @file
6     * Install, update and uninstall functions for the acl module.
7     */
8    
9  /**  /**
10   * Implementation of hook_install().   * Implementation of hook_install().
# Line 97  function acl_schema() { Line 101  function acl_schema() {
101    
102    
103  /*  /*
104   * Implementation of hook_uninstall   * Implementation of hook_uninstall().
105   */   */
106  function acl_uninstall() {  function acl_uninstall() {
107    drupal_uninstall_schema('acl');    drupal_uninstall_schema('acl');
# Line 126  function acl_update_2() { Line 130  function acl_update_2() {
130  function acl_update_4() {  function acl_update_4() {
131    $ret = array();    $ret = array();
132    db_add_index($ret, 'acl_node', 'nid', array('nid'));    db_add_index($ret, 'acl_node', 'nid', array('nid'));
133    db_query("DELETE FROM {acl_node} WHERE nid NOT IN (SELECT nid FROM {node})");    $ret[] = update_sql("DELETE FROM {acl_node} WHERE nid NOT IN (SELECT nid FROM {node})");
134    return $ret;    return $ret;
135  }  }
136    
# Line 135  function acl_update_4() { Line 139  function acl_update_4() {
139   */   */
140  function acl_update_5() {  function acl_update_5() {
141    $ret = array();    $ret = array();
142    db_query("DELETE FROM {acl_user} WHERE uid NOT IN (SELECT uid FROM {users})");    $ret[] = update_sql("DELETE FROM {acl_user} WHERE uid NOT IN (SELECT uid FROM {users})");
143    return $ret;    return $ret;
144  }  }
145    

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.2