Add 'on_source' event for autoload plugins.