2. it's done in Events plugin line 381