You are here

function google_optimize_module_implements_alter in Google Optimize 8

Implements hook_module_implements_alter().

Sets the hook_page_attachments to be loaded last.

So google_analytics_tracking_script will already be loaded.

File

./google_optimize.module, line 244
google_optimize.module

Code

function google_optimize_module_implements_alter(&$implementations, $hook) {
  if ($hook == 'page_attachments') {
    $group = $implementations['google_optimize'];
    unset($implementations['google_optimize']);
    $implementations['google_optimize'] = $group;
  }
}