-
Notifications
You must be signed in to change notification settings - Fork 0
/
js_library_loader.install
36 lines (34 loc) · 1.09 KB
/
js_library_loader.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<?php
function js_library_loader_schema(){
$schema = array();
$schema['js_library_loader'] = array(
'description' => 'The table for storing the JS library data.',
'fields' => array(
'id' => array(
'description' => 'The primary identifier.',
'type' => 'serial',
'not null' => TRUE,
'unsigned' => TRUE,
),
'settings_config' => array(
'type' => 'blob',
'size' => 'normal', // normal / big
'not null' => FALSE,
'description' => t('Settings from the config page.'),
),
'block_content' => array(
'type' => 'blob',
'size' => 'normal', // normal / big
'not null' => FALSE,
'description' => 'Content for block in page load.',
),
),
'primary key' => array('id'),
);
return $schema;
}
function js_library_loader_update_7001() {
$schema = js_library_loader_schema();
if(!db_table_exists('js_library_loader'))
db_create_table('js_library_loader', $schema['js_library_loader']);
}