You are here

function _google_tag_is_windows in GoogleTagManager 8

Same name and namespace in other branches
  1. 7.2 google_tag.module \_google_tag_is_windows()
  2. 7 includes/admin.inc \_google_tag_is_windows()

Determines whether the operating system is Windows.

Return value

bool Whether the operating system is Windows.

1 call to _google_tag_is_windows()
_google_tag_is_executable in ./google_tag.module
Determines whether a directory is searchable.

File

./google_tag.module, line 217
Provides primary Drupal hook implementations.

Code

function _google_tag_is_windows() {
  return defined('PHP_OS_FAMILY') && PHP_OS_FAMILY == 'Windows' || defined('PHP_OS') && strcasecmp(substr(PHP_OS, 0, 3), 'win') == 0;
}