You are here

function views_calc_uninstall in Views Calc 5

Same name and namespace in other branches
  1. 6.3 views_calc.install \views_calc_uninstall()
  2. 6 views_calc.install \views_calc_uninstall()
  3. 7 views_calc.install \views_calc_uninstall()

File

./views_calc.install, line 34

Code

function views_calc_uninstall() {
  $view_calcs = (array) variable_get('views_calc_vid', '');
  foreach ($view_calcs as $view_id) {
    variable_del('views_calc_' . $view_id . '_col');
    variable_del('views_calc_' . $view_id . '_col_calc');
    variable_del('views_calc_' . $view_id . '_row');
    variable_del('views_calc_' . $view_id . '_row_calc');
  }
  variable_del('views_calc_vid');
  variable_del('views_calc_operators');
  db_query("DROP TABLE {views_calc_fields}");
}