FieldInfo::flush
public function FieldInfo::flush
public FieldInfo::flush()
Clears the "static" and persistent caches.
File
- modules/field/field.info.class.inc, line 97
Class
- FieldInfo
- Provides field and instance definitions for the current runtime environment.
Code
public function flush() { $this->fieldMap = NULL; $this->fieldsById = array(); $this->fieldIdsByName = array(); $this->loadedAllFields = FALSE; $this->unknownFields = array(); $this->bundleInstances = array(); $this->loadedAllInstances = FALSE; $this->emptyBundles = array(); $this->bundleExtraFields = array(); cache_clear_all('field_info:', 'cache_field', TRUE); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/modules!field!field.info.class.inc/function/FieldInfo::flush/7.x