You are here

function _webform_render_hubspot_url in HubSpot 6.2

Same name and namespace in other branches
  1. 6 hubspot.module \_webform_render_hubspot_url()
  2. 7 hubspot.module \_webform_render_hubspot_url()

Implements _webform_render_component(). Render this as a hidden field.

File

./hubspot.module, line 285
Sends Webform results to HubSpot's Leads API by using Webform's provided hooks.

Code

function _webform_render_hubspot_url($component, $value = NULL) {
  $element = array(
    '#type' => 'hidden',
    '#title' => check_plain($component['name']),
    '#value' => isset($value[0]) ? $value[0] : $component['value'],
    '#weight' => $component['weight'],
  );
  return $element;
}