You are here

function uc_views_update_6301 in Ubercart Views 6.3

Same name and namespace in other branches
  1. 6.2 uc_views.install \uc_views_update_6301()

Remove database views that were previously in the core module - but has now been moved to uc_views_marketing

File

./uc_views.install, line 6

Code

function uc_views_update_6301() {
  $ret = array();
  $ret[] = update_sql("DROP VIEW {uc_order_products_qty_vw}");
  $ret[] = update_sql("DROP VIEW {uc_order_products_user_vw}");
  $ret[] = update_sql("DROP VIEW {uc_order_products_pair_vw}");
  drupal_set_message(t('Removed database views - please install the new submodule uc_views_marketing to get your old views to work'));
  return $ret;
}