Skip to content
This repository
Browse code

Updated code example a bit.

  • Loading branch information...
commit c4efeda87f747fb438b914bc36a81a75e2f65dbc 1 parent 96ef979
Jerel Unruh jerel authored

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. +10 0 system/cms/modules/contact/plugin.php
10 system/cms/modules/contact/plugin.php
@@ -33,6 +33,16 @@ public function __construct()
33 33 * to = "contact@site.com"
34 34 * from = "server@site.com"
35 35 * }}
  36 + * {{ open }} // Opening form tag.
  37 + * {{ name }}
  38 + * {{ email }}
  39 + * {{ phone }}
  40 + * {{ subject }}
  41 + * {{ body }}
  42 + * {{ close }} // Closing form tag + submit button.
  43 + * {{ /contact:form }}
  44 + *
  45 + * If form validation doesn't pass the error messages will be displayed next to the corresponding form element.
36 46 *
37 47 * @param fields Pipe separated string of form inputs to build. Defaults to :text but :textarea can also be used
38 48 * @param required Pipe separated string of fields that are required

0 comments on commit c4efeda

Please sign in to comment.
Something went wrong with that request. Please try again.