This MODx snippet updates all resources to the given resourceGroup