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