You are here

function img_assist_update_6200 in Image Assist 6.2

Remove obsolete img_assist_preview_count variable. Disable Image assist if Views is not installed/enabled.

File

./img_assist.install, line 68

Code

function img_assist_update_6200() {
  $ret = array();
  variable_del('img_assist_preview_count');
  if (!module_exists('views')) {
    db_query("UPDATE {system} SET status = %d WHERE type = '%s' AND name = '%s'", 0, 'module', 'img_assist');
    drupal_set_message('Image assist has been disabled, because it requires <a href="http://drupal.org/project/views">Views</a> module to be installed.', 'error');
  }
  return $ret;
}