function hubspot_webform_component_info in HubSpot 6
Same name and namespace in other branches
- 6.2 hubspot.module \hubspot_webform_component_info()
- 7 hubspot.module \hubspot_webform_component_info()
Creates a WebForm component to contain the form's HubSpot POST URL.
File
- ./
hubspot.module, line 149 - 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,
),
),
);
}