You are here

function emapi_update_6301 in Embedded Media Field 6.3

Build a table to cache data.

File

emapi/emapi.install, line 106
This is Embedded Media API's installation, configuration, and removal file.

Code

function emapi_update_6301() {
  $schema = array();
  $schema['cache_emapi_xml'] = drupal_get_schema_unprocessed('system', 'cache');
  $schema['cache_emapi_xml']['description'] = 'Cache table used to store xml data for Embedded Media API.';
  $ret = array();
  if (!db_table_exists('cache_emapi_xml')) {
    db_create_table($ret, 'cache_emapi_xml', $schema['cache_emapi_xml']);
  }
  return $ret;
}