Skip to content

Instantly share code, notes, and snippets.

@jhedstrom
Created November 22, 2011 19:21
Show Gist options
  • Save jhedstrom/1386627 to your computer and use it in GitHub Desktop.
Save jhedstrom/1386627 to your computer and use it in GitHub Desktop.
Webform node via profiler syntax (7.x)
nodes[contact][type] = webform
nodes[contact][title] = Contact
nodes[contact][body][und][0][value] = 'TODO'
nodes[contact][body][und][0][format] = full_html
nodes[contact][uid] = 1
nodes[contact][language] = und
nodes[contact][menu][enabled] = 1
nodes[contact][menu][link_title] = Contact
nodes[contact][menu][menu_name] = user-menu
nodes[contact][menu][weight] = 42
nodes[contact][path][alias] = contact
nodes[contact][path][pathauto] = 0
nodes[contact][webform][components][1][type] = email
nodes[contact][webform][components][1][form_key] = email
nodes[contact][webform][components][1][name] = E-mail
nodes[contact][webform][components][1][mandatory] = 1
nodes[contact][webform][components][1][weight] = 1
nodes[contact][webform][components][1][pid] = 0
nodes[contact][webform][components][2][type] = textfield
nodes[contact][webform][components][2][form_key] = name
nodes[contact][webform][components][2][name] = Name
nodes[contact][webform][components][2][mandatory] = 1
nodes[contact][webform][components][2][weight] = 2
nodes[contact][webform][components][2][pid] = 0
nodes[contact][webform][components][3][type] = textarea
nodes[contact][webform][components][3][form_key] = message
nodes[contact][webform][components][3][name] = Message
nodes[contact][webform][components][3][mandatory] = 1
nodes[contact][webform][components][3][weight] = 3
nodes[contact][webform][components][3][pid] = 0
nodes[contact][webform][emails][1][email] = [email protected]
nodes[contact][webform][emails][1][subject] = default
nodes[contact][webform][emails][1][from_name] = default
nodes[contact][webform][emails][1][from_address] = default
nodes[contact][webform][emails][1][template] = default
nodes[contact][webform][emails][1][excluded_components][] = 0
nodes[contact][webform][confirmation] = "TODO"
nodes[contact][webform][confirmation_format] = full_html
nodes[contact][webform][roles][] = 1
nodes[contact][webform][roles][] = 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment