asset_search.install in Asset 6
Same filename and directory in other branches
Asset search Folders module install file
File
contrib/asset_search/asset_search.installView source
<?php
/**
* @file
* Asset search Folders module install file
*/
/**
* Implementation of hook_install()
*/
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.'));
}
function asset_search_uninstall() {
db_query('DROP TABLE {cache_asset_search}');
}
Functions
Name | Description |
---|---|
asset_search_install | Implementation of hook_install() |
asset_search_uninstall |