fb_register.install in Drupal for Facebook 6.2
Install file to support fb_register.module.
File
contrib/fb_register.installView source
<?php
/**
* @file
* Install file to support fb_register.module.
*
*/
function fb_register_install() {
drupal_install_schema('fb_register');
}
function fb_register_uninstall() {
drupal_uninstall_schema('fb_register');
}
function fb_register_schema() {
$schema['fb_register'] = array(
'fields' => array(
'uid' => array(
'type' => 'int',
'unsigned' => TRUE,
'not null' => TRUE,
),
'email_hash' => array(
'type' => 'varchar',
'length' => 255,
),
),
'primary key' => array(
'uid',
),
'unique keys' => array(
'email_hash' => array(
'email_hash',
),
),
);
return $schema;
}
function fb_register_update_6000() {
$ret = array();
db_add_primary_key($ret, 'fb_register', array(
'uid',
));
return $ret;
}
Functions
Name | Description |
---|---|
fb_register_install | @file Install file to support fb_register.module. |
fb_register_schema | |
fb_register_uninstall | |
fb_register_update_6000 |