helper method to get module fields by type.