function signature_forum_install in Signatures for Forums 5
Same name and namespace in other branches
- 5.2 signature_forum.install \signature_forum_install()
- 6 signature_forum.install \signature_forum_install()
- 7 signature_forum.install \signature_forum_install()
Implementation of hook_install().
File
- ./
signature_forum.install, line 6
Code
function signature_forum_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {users_signature} (\n uid int NOT NULL default '0',\n signature text,\n PRIMARY KEY (uid)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
break;
case 'pgsql':
db_query("CREATE TABLE {users_signature} (\n uid int NOT NULL default '0',\n signature text,\n PRIMARY KEY (uid)\n )");
break;
}
}