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

Contents of /contributions/modules/advanced_help/advanced_help.install

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


Revision 1.4 - (show annotations) (download) (as text)
Sun Oct 11 05:47:49 2009 UTC (6 weeks, 3 days ago) by redndahead
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +6 -6 lines
File MIME type: text/x-php
#475630 by Pasqualle: Changed Remove t() from schema descriptions.
1 <?php
2 // $Id: advanced_help.install,v 1.3 2008/04/19 16:45:57 merlinofchaos Exp $
3 /**
4 * @file advanced_help.install
5 * Contains install and update functions for advanced_help.
6 */
7
8 function advanced_help_install() {
9 drupal_set_message('Installing advanced_help.');
10 drupal_install_schema('advanced_help');
11 }
12
13 function advanced_help_uninstall() {
14 drupal_uninstall_schema('advanced_help');
15 variable_del('advanced_help_last_cron');
16 }
17
18 /**
19 * advanced_help's initial schema.
20 */
21 function advanced_help_schema() {
22 $schema['advanced_help_index'] = array(
23 'description' => 'Stores search index correlations for advanced help topics.',
24 'fields' => array(
25 'sid' => array(
26 'type' => 'serial',
27 'unsigned' => TRUE,
28 'not null' => TRUE,
29 'description' => 'The primary key to give to the search engine for this topic.',
30 'no export' => TRUE,
31 ),
32 'module' => array(
33 'type' => 'varchar',
34 'length' => '255',
35 'default' => '',
36 'not null' => TRUE,
37 'description' => 'The module that owns this topic.',
38 ),
39 'topic' => array(
40 'type' => 'varchar',
41 'length' => '255',
42 'default' => '',
43 'not null' => TRUE,
44 'description' => 'The topic id.',
45 ),
46 'language' => array(
47 'type' => 'varchar',
48 'length' => 12,
49 'not null' => TRUE,
50 'default' => '',
51 'description' => 'The language this search index relates to.',
52 ),
53 ),
54 'primary key' => array('sid'),
55 'indexes' => array('language' => array('language')),
56 );
57
58 return $schema;
59 }

  ViewVC Help
Powered by ViewVC 1.1.2