| 1 |
<?php
|
| 2 |
|
| 3 |
function _fb_install_set_weight() {
|
| 4 |
db_query("UPDATE {system} SET weight=-2 WHERE name='fb'");
|
| 5 |
}
|
| 6 |
|
| 7 |
function _fb_install_alter_session_table() {
|
| 8 |
// Make sessions.sid column large enough for Facebook's session_keys.
|
| 9 |
if (variable_get('fb_session_long_keys', TRUE)) {
|
| 10 |
$ret = array();
|
| 11 |
$spec = array(
|
| 12 |
'description' => "Primary key: A session ID. The value is generated by PHP's Session API.",
|
| 13 |
'type' => 'varchar',
|
| 14 |
'length' => 255,
|
| 15 |
'not null' => TRUE,
|
| 16 |
'default' => '');
|
| 17 |
db_change_field($ret, 'sessions', 'sid', 'sid', $spec);
|
| 18 |
}
|
| 19 |
}
|
| 20 |
|
| 21 |
function fb_install() {
|
| 22 |
_fb_install_set_weight();
|
| 23 |
_fb_install_alter_session_table();
|
| 24 |
}
|
| 25 |
|
| 26 |
function fb_uninstall() {
|
| 27 |
}
|
| 28 |
|
| 29 |
function fb_update_6000() {
|
| 30 |
$ret = array();
|
| 31 |
_fb_install_alter_session_table();
|
| 32 |
return $ret;
|
| 33 |
}
|