You are here

function context_breakpoint_url_outbound_alter in Context Breakpoint 7

File

./context_breakpoint.module, line 217
context_screenresolution.module Main module file.

Code

function context_breakpoint_url_outbound_alter(&$path, &$options, $original_path) {
  $settings = context_breakpoint_get_settings();
  $add_url = $settings['breakpoints_in_url'];
  $active = context_breakpoint_get_active_breakpoints();
  if ($add_url && !$options['external'] && count($active)) {
    $options['query']['context-breakpoints'] = implode(',', $active);
  }
}