You are here

function hubspot_webform_component_info in HubSpot 6.2

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

Creates a WebForm component to contain the form's HubSpot POST URL. Implements hook_webform_component_info().

File

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

Code

function hubspot_webform_component_info() {
  return array(
    'hubspot_url' => array(
      'label' => t('HubSpot POST URL'),
      'description' => t("A HubSpot API POST URL, to submit a form's contents to HubSpot Leads."),
      'features' => array(
        'csv' => FALSE,
        'email' => FALSE,
        'title_display' => FALSE,
        // prevents the "Display" field from being displayed while editing the component
        'required' => FALSE,
      ),
    ),
  );
}