summaryrefslogtreecommitdiff
path: root/modules/field/field.module
diff options
context:
space:
mode:
Diffstat (limited to 'modules/field/field.module')
-rw-r--r--modules/field/field.module14
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/field/field.module b/modules/field/field.module
index d4c0050c9..708677bdc 100644
--- a/modules/field/field.module
+++ b/modules/field/field.module
@@ -426,21 +426,11 @@ function _field_extra_weights_pre_render($elements) {
}
/**
- * Clear the cached information; called in several places when field
- * information is changed.
+ * Clear the field info and field date caches.
*/
-function field_cache_clear($rebuild_schema = FALSE) {
+function field_cache_clear() {
cache_clear_all('*', 'cache_field', TRUE);
-
- module_load_include('inc', 'field', 'field.info');
field_info_cache_clear();
-
- // Refresh the schema to pick up new information.
- // TODO : if db storage gets abstracted out, we'll need to revisit how and when
- // we refresh the schema...
- if ($rebuild_schema) {
- $schema = drupal_get_schema(NULL, TRUE);
- }
}
/**