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

Contents of /contributions/modules/taxonomy_delegate/taxonomy_delegate.install

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


Revision 1.2 - (show annotations) (download) (as text)
Sat Feb 23 05:49:41 2008 UTC (21 months ago) by nancyw
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -46 lines
File MIME type: text/x-php
*** empty log message ***
1 <?php
2 // $Id: taxonomy_delegate.install,v 1.1 2008/02/23 05:00:02 nancyw Exp $
3
4 /**
5 * Implementation of hook_install().
6 **/
7 function taxonomy_delegate_schema() {
8 $schema['taxonomy_delegate'] = array(
9 'description' => 'Maps delegation of vocabulary administation',
10 'fields' => array(
11 'vid' => array(
12 'description' => 'Vocabulary identifier',
13 'type' => 'int',
14 'not null' => TRUE,
15 'disp-width' => '10',
16 ),
17 'rid' => array(
18 'description' => 'Role identifier',
19 'type' => 'int',
20 'not null' => TRUE,
21 'disp-width' => '10',
22 ),
23 ),
24 'primary key' => array('vid', 'rid'),
25 );
26 return $schema;
27 }
28
29 /**
30 * Implementation of hook_install().
31 **/
32 function taxonomy_delegate_install() {
33 $result = drupal_install_schema('taxonomy_delegate');
34 }
35
36 /**
37 * Implementation of hook_uninstall().
38 **/
39 function taxonomy_delegate_uninstall() {
40 drupal_uninstall_schema('taxonomy_image');
41 }

  ViewVC Help
Powered by ViewVC 1.1.2