public function EntityformTypeController::save in Entityform 7
Same name and namespace in other branches
- 7.2 entityform.module \EntityformTypeController::save()
Overridden to clear cache.
Overrides EntityAPIControllerExportable::save
File
- ./
entityform.module, line 1311 - Module for the Entityform Entity - a starting point to create your own Entity and associated administration interface
Class
- EntityformTypeController
- The Controller for Entityform entities
Code
public function save($entity, DatabaseTransaction $transaction = NULL) {
$return = parent::save($entity, $transaction);
// Reset the entityform type cache. We need to do this first so
// menu changes pick up our new type.
entityform_type_cache_reset();
// Clear field info caches such that any changes to extra fields get
// reflected.
field_info_cache_clear();
return $return;
}