new event to let plugin define deprecated module and action

fixes  #6865