summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--includes/DataTable.inc14
1 files changed, 14 insertions, 0 deletions
diff --git a/includes/DataTable.inc b/includes/DataTable.inc
index 7188439..4b1ea6a 100644
--- a/includes/DataTable.inc
+++ b/includes/DataTable.inc
@@ -163,6 +163,20 @@ class DataTable {
}
}
+ // Clear caches.
+ drupal_get_schema($this->name, TRUE);
+
+ // Have views read new views information about table.
+ // @todo: this doesn't seem to quite cut it.
+ if (module_exists('views')) {
+ views_invalidate_cache();
+ }
+
+ // data ui exposes path to a new default view.
+ if (module_exists('data_ui')) {
+ menu_rebuild();
+ }
+
return FALSE;
}