You are here

function fbconnect_install in Facebook Connect 5

Same name and namespace in other branches
  1. 6.2 fbconnect.install \fbconnect_install()
  2. 6 fbconnect.install \fbconnect_install()

@file Implementation of hook_install().

File

./fbconnect.install, line 7
Implementation of hook_install().

Code

function fbconnect_install() {
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_query("CREATE TABLE {fbconnect_users} (\n         `uid` int(10) unsigned NOT NULL default '0',\n         `fbuid` int(10) unsigned NOT NULL default '0',\n         `timestamp` int(10) unsigned NOT NULL default '0',\n         `import_setting` text,\n         `avatar` tinyint(3) unsigned NOT NULL default '1',\n         `visibility` tinyint(3) unsigned NOT NULL default '1',\n          PRIMARY KEY  (`fbuid`)\n          ) /*!40100 DEFAULT CHARACTER SET utf8 */");
  }
}