- // Prefill attachments
- Notice::fillAttachments($notices);
- // Prefill attachments
- Notice::fillFaves($notices);
- // Prefill repeat data
- Notice::fillRepeats($notices);
- // Prefill the profiles
- $profiles = Notice::fillProfiles($notices);
- // Prefill the avatars
- Profile::fillAvatars($profiles, $avatarSize);
+ if (Event::handle('StartNoticeListPrefill', array(&$notices, $avatarSize))) {
+
+ // Prefill attachments
+ Notice::fillAttachments($notices);
+ // Prefill attachments
+ Notice::fillFaves($notices);
+ // Prefill repeat data
+ Notice::fillRepeats($notices);
+ // Prefill the profiles
+ $profiles = Notice::fillProfiles($notices);
+ // Prefill the avatars
+ Profile::fillAvatars($profiles, $avatarSize);