fixes: #1166272 by Dave Cohen, John Klehm: support for facebooks oauth 2. Mostly...
[project/fb.git] / fb_tab.install
1 <?php
2
3 /**
4 * @file
5 * Installs database tables and settings required by fb_tab module.
6 *
7 */
8
9 /**
10 * Implements hook_install()
11 */
12 function fb_tab_install() {
13 drupal_set_message(st('Facebook Tab module installed.', array('!perm' => url('admin/people/permissions'), '!create' => url('admin/structure/fb') /* FB_PATH_ADMIN */)));
14 }
15
16 /**
17 * Implement hook_uninstall()
18 */
19 function fb_tab_uninstall() {
20 }
21
22 function fb_tab_schema() {
23 $schema['fb_tab'] = array(
24 'description' => 'Main fb_tab table. Presents tabs to user and manages configuration data for different tab views.',
25 'fields' => array(
26 'fb_tab_id' => array(
27 'description' => 'The primary identifier.',
28 'type' => 'serial',
29 'unsigned' => TRUE,
30 'not null' => TRUE),
31 'label' => array(
32 'description' => 'Facebook application label.',
33 'type' => 'varchar',
34 'length' => 255,
35 'not null' => TRUE,
36 'default' => ''),
37 'profile_id' => array(
38 'description' => 'profile id (which tab is calling)',
39 'type' => 'int',
40 'size' => 'big',
41 'not null' => TRUE),
42 'created' => array(
43 'description' => 'The Unix timestamp when the row was created.',
44 'type' => 'int',
45 'not null' => TRUE,
46 'default' => 0),
47 'data' => array(
48 'type' => 'text',
49 'size' => 'big',
50 'description' => 'Serialized generic data.',
51 'default' => NULL,
52 ),
53 ),
54 'primary key' => array('fb_tab_id'),
55 'unique keys' => array(
56 'fb_tab' => array('label', 'profile_id'),
57 ),
58 );
59
60 return $schema;
61 }