| 1 |
<?php
|
| 2 |
function vocabindex_schema()
|
| 3 |
{
|
| 4 |
$schema['vocabindex']=array(
|
| 5 |
'description'=>t('The table in which the aliases for vocabulary index pages are stored.'),
|
| 6 |
'fields'=>array(
|
| 7 |
'vid'=>array(
|
| 8 |
'description'=>t('The primary identifier for a vocabulary index page.'),
|
| 9 |
'type'=>'int',
|
| 10 |
'not null'=>TRUE
|
| 11 |
),
|
| 12 |
'path'=>array(
|
| 13 |
'description'=>t('The alias for a vocabulary index page.'),
|
| 14 |
'type'=>'varchar',
|
| 15 |
'length'=>'128',
|
| 16 |
'not null'=>TRUE,
|
| 17 |
),
|
| 18 |
),
|
| 19 |
'primary key'=>array('vid'),
|
| 20 |
);
|
| 21 |
|
| 22 |
return $schema;
|
| 23 |
}
|
| 24 |
|
| 25 |
function vocabindex_install()
|
| 26 |
{
|
| 27 |
drupal_install_schema('vocabindex');
|
| 28 |
|
| 29 |
drupal_set_message(t('Vocabulary Index has been succesfully installed. Please proceed to <a href="!link">the settings page</a> to get started.', array('!link'=>url('admin/content/vocabindex/settings'))));
|
| 30 |
}
|
| 31 |
|
| 32 |
function vocabindex_uninstall()
|
| 33 |
{
|
| 34 |
drupal_uninstall_schema('vocabindex');
|
| 35 |
|
| 36 |
drupal_set_message(t('Vocabulary Index has been succesfully uninstalled. We hope you enjoyed the ride!'));
|
| 37 |
}
|