You are here

function template_preprocess_browsersync_snippet in Browsersync 7

Preprocesses variables for browsersync-snippet.tpl.php.

File

theme/browsersync.theme.inc, line 11
Code for the Browsersync module theme related functions.

Code

function template_preprocess_browsersync_snippet(&$variables) {
  $variables['host'] = $variables['host'] ? check_plain($variables['host']) : BROWSERSYNC_DEFAULT_HOST;
  $variables['port'] = $variables['port'] ? check_plain($variables['port']) : BROWSERSYNC_DEFAULT_PORT;
}