public function GroupType::resetCache in Group 7
Resets the internal entity cache.
Parameters
array $ids: (optional) If specified, the cache is reset for the GroupRole entities with the given ids only.
1 call to GroupType::resetCache()
- GroupType::removeRoles in classes/
group_type.inc - Delete all possible roles for a group type.
File
- classes/
group_type.inc, line 26 - Defines the Entity API class for group types.
Class
- GroupType
- Main class for group type entities.
Code
public function resetCache(array $ids = NULL) {
if (isset($ids)) {
foreach ($ids as $id) {
unset($this->entityCache[$id]);
}
}
else {
$this->entityCache = array();
}
}