Created
January 26, 2015 22:18
-
-
Save brs14ku/d2c0411785a27a937623 to your computer and use it in GitHub Desktop.
Timber + Gravity Forms Dynamic Population of Fields
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$gravityfunction = new Twig_SimpleFunction('displaygform', function ($id, $eventName) { | |
$form = gravity_form($id,false, false, false, array('event_name'=>$eventName)); | |
return $form; | |
}); | |
$twig->addFunction($gravityfunction); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Full article and walkthrough here: http://cmsmess.com/timber-gravity-forms-dynamic-population-fields/