You are here

public function FacebookTrackingPixelTestHelper::enable_tracking_all_roles in Facebook Tracking Pixel 7

Same name and namespace in other branches
  1. 8 tests/facebook_tracking_pixel.helper.php \facebookTrackingPixel\FacebookTrackingPixelTestHelper::enable_tracking_all_roles()

Enable tracking for all roles.

File

tests/facebook_tracking_pixel.helper.php, line 15
Contains tests for the Facebook Tracking Pixel module.

Class

FacebookTrackingPixelTestHelper

Namespace

facebookTrackingPixel

Code

public function enable_tracking_all_roles() {

  // Turn on tracking for roles.
  variable_set('facebook_tracking_pixel_visibility_roles', 0);
  variable_set('facebook_tracking_pixel_roles_administrator', 1);
  variable_set('facebook_tracking_pixel_roles_anonymous_user', 1);
  variable_set('facebook_tracking_pixel_roles_authenticated_user', 1);
}