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

Contents of /contributions/modules/vocabindex/vocabindex.install

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


Revision 1.2 - (show annotations) (download) (as text)
Fri Jan 11 15:43:15 2008 UTC (22 months, 2 weeks ago) by xano
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +13 -13 lines
File MIME type: text/x-php
*** empty log message ***
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 }

  ViewVC Help
Powered by ViewVC 1.1.2