| 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 |
}
|