You are here

function context_update_6003 in Context 6.2

Same name and namespace in other branches
  1. 6.3 context.install \context_update_6003()

Remove deprecated tables from context_ui.

File

./context.install, line 142

Code

function context_update_6003() {
  $ret = array();
  $tables = array(
    'context_ui',
    'context_ui_setter',
    'context_ui_getter',
    'context_ui_block',
  );
  foreach ($tables as $table) {
    if (db_table_exists($table)) {
      db_drop_table($ret, $table);
    }
  }
  return $ret;
}