Skip to content

Instantly share code, notes, and snippets.

@keeprock
Last active August 29, 2015 14:16
Show Gist options
  • Save keeprock/c3e1526bdacd5a762ac6 to your computer and use it in GitHub Desktop.
Save keeprock/c3e1526bdacd5a762ac6 to your computer and use it in GitHub Desktop.
Link to open a modal window with a webform. Class "ctools-use-modal" used here to hook up with a Ctools Ajax dialog module. Absolutely necessary.
<a class="ctools-use-modal ctools-modal-modal-popup-STYLE-OF-THE-WEBFORM(small, medium, large)"
href="/modal_forms/nojs/webform/ID-OF-THE-WEBFORM">Open a webform</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment