In the <youpluginname>_supports() function you will want to ensure that if the FEATURE_MOD_ARCHETYPE is checked for returns null rather than MOD_ARCHETYPE_RESOURCE or another value.
A resource will return MOD_ARCHETYPE_RESOURCE
An activity will return null