You are here

function hook_simple_facebook_pixel_script_code_alter in Simple Facebook Pixel 8

Alter the script code for pages.

Parameters

string $script_code: The script code.

1 function implements hook_simple_facebook_pixel_script_code_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

simple_facebook_pixel_test_hooks_simple_facebook_pixel_script_code_alter in tests/modules/simple_facebook_pixel_test_hooks/simple_facebook_pixel_test_hooks.module
Implements hook_simple_facebook_pixel_script_code_alter().
1 invocation of hook_simple_facebook_pixel_script_code_alter()
PixelBuilderService::getPixelScriptCode in src/PixelBuilderService.php
Gets pixel script code.

File

./simple_facebook_pixel.api.php, line 26
Hooks specific to the Simple Facebook Pixel module.

Code

function hook_simple_facebook_pixel_script_code_alter(&$script_code) {
  $script_code = 'Altered script code';
}