/** * Purges the cached hooks. * * @return void */ public function purgeHooks() { self::$hooks = array(); self::$hooksHaveBeenRetrieved = FALSE; }