You are here

function _hubspot_get_forms in HubSpot 3.x

Same name and namespace in other branches
  1. 8 hubspot.module \_hubspot_get_forms()

Gets the list of forms from HubSpot via the API.

Upon failure, it will attempt to reauthenticate.

File

./hubspot.module, line 72
Sends Webform results to HubSpot's Forms API.

Code

function _hubspot_get_forms() {
  return \Drupal::service('hubspot.hubspot')
    ->getHubspotForms();
}