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

Contents of /contributions/modules/node_access_control/node_access_control.install

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Jun 6 11:31:00 2008 UTC (17 months, 3 weeks ago) by rmuilwijk
Branch: MAIN
CVS Tags: DRUPAL-5--1-0-BETA2, DRUPAL-5--1-0-BETA1, HEAD
Branch point for: DRUPAL-5
Changes since 1.1: +3 -3 lines
File MIME type: text/x-php
Changed the url to our upcoming english based community site.
1 <?php
2 // $Id: node_access_control.install,v 1.1 2008/06/06 11:14:49 rmuilwijk Exp $
3
4 /**
5 * @file
6 * Install file for node based access control
7 *
8 * This module was developed by Madcap, open.madcap.nl
9 *
10 * @author Raymond Muilwijk <r.muilwijk@madcap.nl>
11 */
12
13 /**
14 * Implementation of hook_install().
15 */
16 function node_access_control_install() {
17 switch ($GLOBALS['db_type']) {
18 case 'mysql':
19 case 'mysqli':
20 db_query("
21 CREATE TABLE {node_access_control} (
22 nid int(11) unsigned NOT NULL,
23 vid int(11) unsigned NOT NULL,
24 perm_view varchar(255) NOT NULL,
25 perm_update varchar(255) NOT NULL,
26 perm_delete varchar(255) NOT NULL,
27 PRIMARY KEY (nid,vid)
28 ) DEFAULT CHARSET=utf8;"
29 );
30 break;
31 }
32 }
33
34 /**
35 * Implementation of hook_uninstall().
36 */
37 function node_access_control_uninstall() {
38 db_query("DROP TABLE {node_access_control}");
39 }

  ViewVC Help
Powered by ViewVC 1.1.2