1 |
85ad3d82
|
Assos Assos
|
<?php
|
2 |
|
|
/**
|
3 |
|
|
* @file
|
4 |
|
|
* Contains install and update functions for advanced_help.
|
5 |
|
|
*/
|
6 |
|
|
|
7 |
|
|
/**
|
8 |
|
|
* Implements hook_uninstall().
|
9 |
|
|
*/
|
10 |
|
|
function advanced_help_uninstall() {
|
11 |
|
|
variable_del('advanced_help_last_cron');
|
12 |
|
|
}
|
13 |
|
|
|
14 |
|
|
/**
|
15 |
|
|
* Implements hook_schema().
|
16 |
|
|
*/
|
17 |
|
|
function advanced_help_schema() {
|
18 |
|
|
$schema['advanced_help_index'] = array(
|
19 |
|
|
'description' => 'Stores search index correlations for advanced help topics.',
|
20 |
|
|
'fields' => array(
|
21 |
|
|
'sid' => array(
|
22 |
|
|
'type' => 'serial',
|
23 |
|
|
'unsigned' => TRUE,
|
24 |
|
|
'not null' => TRUE,
|
25 |
|
|
'description' => 'The primary key to give to the search engine for this topic.',
|
26 |
|
|
'no export' => TRUE,
|
27 |
|
|
),
|
28 |
|
|
'module' => array(
|
29 |
|
|
'type' => 'varchar',
|
30 |
|
|
'length' => '255',
|
31 |
|
|
'default' => '',
|
32 |
|
|
'not null' => TRUE,
|
33 |
|
|
'description' => 'The module that owns this topic.',
|
34 |
|
|
),
|
35 |
|
|
'topic' => array(
|
36 |
|
|
'type' => 'varchar',
|
37 |
|
|
'length' => '255',
|
38 |
|
|
'default' => '',
|
39 |
|
|
'not null' => TRUE,
|
40 |
|
|
'description' => 'The topic id.',
|
41 |
|
|
),
|
42 |
|
|
'language' => array(
|
43 |
|
|
'type' => 'varchar',
|
44 |
|
|
'length' => 12,
|
45 |
|
|
'not null' => TRUE,
|
46 |
|
|
'default' => '',
|
47 |
|
|
'description' => 'The language this search index relates to.',
|
48 |
|
|
),
|
49 |
|
|
),
|
50 |
|
|
'primary key' => array('sid'),
|
51 |
|
|
'indexes' => array('language' => array('language')),
|
52 |
|
|
'foreign keys' => array(
|
53 |
|
|
'module' => array('system' => 'name'),
|
54 |
|
|
),
|
55 |
|
|
);
|
56 |
|
|
|
57 |
|
|
return $schema;
|
58 |
|
|
} |