You are here

function hubspot_page_build in HubSpot 7.3

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

Implements hook_page_build().

Injects the HubSpot JavaScript tracking code into the page footer, just before </body>.

File

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

Code

function hubspot_page_build(&$page) {
  $page['page_bottom']['hubspot_code'] = array(
    '#type' => 'markup',
    '#markup' => variable_get('hubspot_log_code', ''),
  );
}