You are here

asset_embed.install in Asset 5

Same filename and directory in other branches
  1. 6 asset_embed/asset_embed.install

File

asset_embed/asset_embed.install
View 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

Namesort descending Description
asset_embed_install Implementation of hook_install()