Functions 4
clanbite_normalize_admin_sub_tabs()clanbiteValidate sub-tab definitions for the admin bootstrap payload.clanbite_points_revoke()clanbite-pointsTake back the points a reference earned, for example when the post that earned them is deleted.clanbite_points_revoke()clanbite-pointsTake back the points a reference earned (a deleted post, a removed reaction).clanbite_register_admin_sub_tab()clanbiteAdd an entry to the sub-navigation of any tab on the Clanbite settings screen.
Hooks 5
clanbite_admin_rest_sub_tabsclanbiteFilter: clanbite_admin_rest_sub_tabs — sub-navigation entries for one tab of Clanbite → Settings.clanbite_points_revokedclanbite-pointsFires after an award was taken back.clanbite_points_should_revokeclanbite-pointsFilters whether one award is taken back.clanbite_social_kit_friendship_removedclanbite-social-kitFires after an accepted friendship was ended by one of the two members.clanbite_social_kit_post_deletedclanbite-social-kitFires after a social post and everything attached to it (comments, reactions, media, poll votes) was deleted.
Methods 9
Companion_Hooks::on_forums_reply_deleted()clanbite-pointsTake back what a deleted forum reply earned.Companion_Hooks::on_forums_topic_trashed()clanbite-pointsTake back what a trashed forum topic and the replies in it earned.Companion_Hooks::on_friendship_removed()clanbite-pointsTake back the points earned by a friendship (the request and the acceptance) when it ends.Companion_Hooks::on_social_post_deleted()clanbite-pointsTake back everything a deleted social post earned: the post itself, its poll and photo bonus, votes, comments and the reactions on it and on its comments.Engine::revoke()clanbite-pointsTake back the points a reference earned (a deleted post, a removed reaction, an ended friendship).Ledger::get_live_rows_for_ref()clanbite-pointsLive awards for a reference and everything beneath it (sk_post:34 also matches sk_post:34:comment:9).Ledger::has_live_ref()clanbite-pointsWhether a live (not reversed) award with this reference exists.Ledger::insert_reversal()clanbite-pointsInsert the negative row that takes back a reversed award.Ledger::mark_reversed()clanbite-pointsMark an award as reversed. Only the first caller succeeds, so an award is never taken back twice.