You are here

emaudio.install in Embedded Media Field 5

File

contrib/emaudio/emaudio.install
View source
<?php

/**
 * Implementation of hook_install().
 */
function emaudio_install() {
}
function emaudio_update_1() {
  $ret = _emaudio_update_reset_cache_views();
  return $ret;
}

// I'd like this to be conditional, so it only runs if they don't have views installed.
// however, module_exists doesn't actually work in the update scripts.
function _emaudio_update_reset_cache_views() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {cache_views}");
  return $ret;
}