Get the embed code for a given form
Usage
// basic usage
$string = $forms->embed($formName);
// usage with all arguments
$string = $forms->embed($formName, array $vars = null);
Arguments
Name | Type(s) | Description |
---|---|---|
formName | ||
vars (optional) | array | Optional array of variables to send as GET vars to the embedded form. When used, overrides use of actual GET variables. |
Return value
string
Embed code or error message
API reference based on ProcessWire core version 3.0.236