You are here

function addthis_test_page_build in AddThis 7.4

Implements hook_page_build().

File

addthis_test/addthis_test.module, line 5

Code

function addthis_test_page_build(&$page) {

  // See AddThisTestHelper.php.page.inc for more info.
  if (current_path() == 'addthis/test/2') {
    $manager = AddThisScriptManager::getInstance();
    $manager
      ->attachJsToElement($page['content']);
  }
}