Give your plugins a tag/attribute, and then loop through ALL the plugins checking for that tag/attribute and then continue on with whatever you wanted to do.
There's some grouping code posted somewhere that shows you exactly how this works as a function.