asset_embed.install in Asset 5
Same filename and directory in other branches
File
asset_embed/asset_embed.installView source
<?php
/**
* Implementation of hook_install()
*/
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.'));
}
Functions
Name | Description |
---|---|
asset_embed_install | Implementation of hook_install() |