Change Retired Status

Currently when a pilot is market inactive/Retired they have to contact Staff to to change their status.  Where is this set in the code?  We want them to be able to file a PIREP and change their status back to active.  The filing can be done either manually or via ACARS.