Functoriality of groupoid quantales