source: sipes/modules_contrib/workflow/workflow_access.install @ 8a8efa8

stableversion-3.0
Last change on this file since 8a8efa8 was 177a560, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agrego el directorio de modulos contribuidos de drupal

  • Propiedad mode establecida a 100644
File size: 1.1 KB
Línea 
1<?php
2// $Id: workflow_access.install,v 1.3 2008/07/23 12:23:09 jvandyk Exp $
3
4/**
5 * Implementation of hook_install().
6 */
7function workflow_access_install() {
8  drupal_install_schema('workflow_access');
9}
10
11/**
12 * Implementation of hook_uninstall().
13 */
14function workflow_access_uninstall() {
15  drupal_uninstall_schema('workflow_access');
16}
17
18/**
19 * Implementation of hook_schema().
20 */
21function 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}
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.