function asset_bonus_install in Asset 6
Same name and namespace in other branches
- 5.2 contrib/asset_bonus/asset_bonus.install \asset_bonus_install()
Implementation of hook_install()
File
- contrib/
asset_bonus/ asset_bonus.install, line 6
Code
function asset_bonus_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {asset_bonus} (\n aid int(10) unsigned NOT NULL,\n data blob,\n PRIMARY KEY (aid)\n ) TYPE=MyISAM /*!40100 DEFAULT CHARACTER SET utf8 */;");
case 'pgsql':
// @TODO: postgresql
break;
}
drupal_set_message(t('Asset Bonus tables have been configured.'));
}