You are here

image_ncck.install in Embedded Media Field 5

File

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

/**
 * Implementation of hook_install().
 */
function image_ncck_install() {
}
function image_cck_update_1() {
  $ret = _image_cck_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 _image_ncck_update_reset_cache_views() {
  $ret = array();
  $ret[] = update_sql("DELETE FROM {cache_views}");
  return $ret;
}