function hubspot_page_build in HubSpot 7
Same name and namespace in other branches
- 7.3 hubspot.module \hubspot_page_build()
- 7.2 hubspot.module \hubspot_page_build()
Implements hook_page_build() to inject the HubSpot JavaScript tracking code into the page footer, just before </body>.
File
- ./
hubspot.module, line 257 - Sends Webform results to HubSpot's Leads API by using Webform's provided hooks.
Code
function hubspot_page_build(&$page) {
$page['page_bottom']['hubspot_code'] = array(
'#type' => 'markup',
'#markup' => variable_get('hubspot_log_code', ''),
);
}