/[drupal]/contributions/modules/workflow/workflow_access.install
ViewVC logotype

Contents of /contributions/modules/workflow/workflow_access.install

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


Revision 1.3 - (show annotations) (download) (as text)
Wed Jul 23 12:23:09 2008 UTC (16 months ago) by jvandyk
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC1, DRUPAL-6--1-0-RC3, DRUPAL-6--1-0-RC4, DRUPAL-6--1-0-RC2, DRUPAL-6--1-0, DRUPAL-6--1-1, DRUPAL-6--1-2, DRUPAL-6--1-3, DRUPAL-6--1-0-BETA2, HEAD
Branch point for: DRUPAL-6--1
Changes since 1.2: +1 -3 lines
File MIME type: text/x-php
#286195 by Nick Fedchik: rename _actions_normalize_node_context to _trigger_normalize_node_context
1 <?php
2 // $Id: workflow_access.install,v 1.2 2008/04/02 16:44:07 jvandyk Exp $
3
4 /**
5 * Implementation of hook_install().
6 */
7 function workflow_access_install() {
8 drupal_install_schema('workflow_access');
9 }
10
11 /**
12 * Implementation of hook_uninstall().
13 */
14 function workflow_access_uninstall() {
15 drupal_uninstall_schema('workflow_access');
16 }
17
18 /**
19 * Implementation of hook_schema().
20 */
21 function workflow_access_schema() {
22 $schema['workflow_access'] = array(
23 'fields' => array(
24 'sid' => array('type' => 'serial', 'not null' => TRUE),
25 'rid' => array('type' => 'int', 'not null' => TRUE, 'default' => 0),
26 'grant_view' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
27 'grant_update' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0),
28 'grant_delete' => array('type' => 'int', 'unsigned' => TRUE, 'size' => 'tiny', 'not null' => TRUE, 'default' => 0)
29 ),
30 'indexes' => array(
31 'rid' => array('rid'),
32 'sid' => array('sid')),
33 );
34 return $schema;
35 }

  ViewVC Help
Powered by ViewVC 1.1.2