function asset_search_install in Asset 6
Same name and namespace in other branches
- 5.2 contrib/asset_search/asset_search.install \asset_search_install()
Implementation of hook_install()
File
- contrib/
asset_search/ asset_search.install, line 11 - Asset search Folders module install file
Code
function asset_search_install() {
switch ($GLOBALS['db_type']) {
case 'mysql':
case 'mysqli':
db_query("CREATE TABLE {cache_asset_search} (\n cid varchar(255) NOT NULL default '',\n data longblob,\n expire int NOT NULL default '0',\n created int NOT NULL default '0',\n headers text,\n PRIMARY KEY (cid),\n INDEX expire (expire)\n ) /*!40100 DEFAULT CHARACTER SET UTF8 */ ");
case 'pgsql':
//TODO: postgresql
break;
}
drupal_set_message(t('Asset Search Folder tables have been configured.'));
}