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

Contents of /contributions/modules/na_arbitrator/acl.install

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


Revision 1.3 - (show annotations) (download) (as text)
Sun Apr 2 06:45:36 2006 UTC (3 years, 7 months ago) by merlinofchaos
Branch: MAIN
CVS Tags: DRUPAL-4-7--1-0, HEAD
Branch point for: DRUPAL-4-7
Changes since 1.2: +4 -4 lines
File MIME type: text/x-php
add {} where appropriate
1 <?php
2 // $Id: acl.install,v 1.2 2006/03/24 01:39:44 merlinofchaos Exp $
3
4 function acl_install() {
5 db_query("create table if not exists {acl} (
6 acl_id int(10) NOT NULL default 0,
7 module varchar(255),
8 name varchar(255),
9 KEY acl_id (acl_id)
10 );");
11
12 db_query("create table if not exists {acl_user} (
13 acl_id int(10) NOT NULL default 0,
14 uid int(10) NOT NULL default 0,
15 KEY acl_id (acl_id),
16 KEY uid (uid)
17 );");
18
19 db_query("create table if not exists {acl_node} (
20 acl_id int(10) NOT NULL default 0,
21 nid int(10) NOT NULL default 0,
22 grant_view tinyint(1) unsigned NOT NULL default '0',
23 grant_update tinyint(1) unsigned NOT NULL default '0',
24 grant_delete tinyint(1) unsigned NOT NULL default '0',
25 KEY acl_id (acl_id),
26 KEY nid (nid)
27 );");
28
29 drupal_set_message("acl database tables created.");
30 }

  ViewVC Help
Powered by ViewVC 1.1.2