/** * If a notice gets deleted, remove the Notice_to_item mapping and * delete the item on Facebook * * @param User $user The user doing the deleting * @param Notice $notice The notice getting deleted * * @return boolean hook value */ function onStartDeleteOwnNotice(User $user, Notice $notice) { $client = new Facebookclient($notice); $client->streamRemove(); return true; }