Issue #2841520 by SpartyDan, nickonom: Enable and Disable hooks do not handle invite_type entity correctly