code: function (templateRendered, patternPartial, iframePassback, switchText) {
  
  		if (iframePassback) {
  
  			// send a message to the pattern
  			var obj = JSON.stringify({
  				'event': 'patternLab.patternModalInsert',
  				'patternPartial': patternPartial,
  				'modalContent': templateRendered.outerHTML
  			});
  			document.querySelector('.pl-js-iframe').contentWindow.postMessage(obj, modalViewer.targetOrigin);
  
  		} else {
  
  			// insert the panels and open the viewer
  			$('.pl-js-modal-content').html(templateRendered);
  			modalViewer.open();
  
  		}
  
  		// update the wording unless this is a default viewall opening
  		if (switchText === true) {
  			$('.pl-js-pattern-info-toggle').html("Hide Pattern Info");
  		}
  
  	}
docs: insert the copy for the modal window. if it's meant to be sent back to the iframe, do that.
  @param  {String}       the rendered template that should be inserted
  @param  {String}       the patternPartial that the rendered template is related to
  @param  {Boolean}      if the refresh is of a view-all view and the content should be sent back
  @param  {Boolean}      if the text in the dropdown should be switched