diff options
author | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-20 19:27:01 +0100 |
---|---|---|
committer | Ctibor Brančík <ctibor@brancik.cz> | 2016-03-20 19:27:01 +0100 |
commit | 29a6913890a675ddf1a9239b4407f105e02dc95d (patch) | |
tree | dd9ba21b73e9e704952b49d5153616a9dfa9b98f /sites/all/modules/advanced_help/advanced_help.install | |
parent | 5ddacae6306ce071d4f7e4d438960d6d3a4c6bd8 (diff) | |
download | brdo-29a6913890a675ddf1a9239b4407f105e02dc95d.tar.gz brdo-29a6913890a675ddf1a9239b4407f105e02dc95d.tar.bz2 |
Added drupal modules for site
Diffstat (limited to 'sites/all/modules/advanced_help/advanced_help.install')
-rw-r--r-- | sites/all/modules/advanced_help/advanced_help.install | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/sites/all/modules/advanced_help/advanced_help.install b/sites/all/modules/advanced_help/advanced_help.install new file mode 100644 index 000000000..6c4455a04 --- /dev/null +++ b/sites/all/modules/advanced_help/advanced_help.install @@ -0,0 +1,61 @@ +<?php +/** + * @file + * Contains install and update functions for advanced_help. + */ + +/** + * Implements hook_uninstall(). + */ +function advanced_help_uninstall() { + variable_del('advanced_help_last_cron'); +} + +/** + * Implements hook_schema(). + */ +function advanced_help_schema() { + $schema['advanced_help_index'] = array( + 'description' => 'Stores search index correlations for advanced help topics.', + 'fields' => array( + 'sid' => array( + 'type' => 'serial', + 'unsigned' => TRUE, + 'not null' => TRUE, + 'description' => 'The primary key to give to the search engine for this topic.', + 'no export' => TRUE, + ), + 'module' => array( + 'type' => 'varchar', + 'length' => '255', + 'default' => '', + 'not null' => TRUE, + 'description' => 'The module that owns this topic.', + ), + 'topic' => array( + 'type' => 'varchar', + 'length' => '255', + 'default' => '', + 'not null' => TRUE, + 'description' => 'The topic id.', + ), + 'language' => array( + 'type' => 'varchar', + 'length' => 12, + 'not null' => TRUE, + 'default' => '', + 'description' => 'The language this search index relates to.', + ), + ), + 'primary key' => array('sid'), + 'indexes' => array('language' => array('language')), + 'foreign keys' => array( + 'system' => array( + 'table' => 'system', + 'columns' => array('name' => 'name'), + ), + ), + ); + + return $schema; +} |