You are here

function hook_print_new_window_alter in Printer, email and PDF versions 7.2

Allows the user to change the new window behaviour.

Parameters

string $new_window: New window status.

string $format: Format being processed.

Related topics

2 functions implement hook_print_new_window_alter()

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

print_pdf_print_new_window_alter in print_pdf/print_pdf.module
Implements hook_print_new_window_alter().
print_print_new_window_alter in ./print.module
Implements hook_print_new_window_alter().

File

print_ui/print_ui.api.php, line 88
Hooks provided by the Print UI module.

Code

function hook_print_new_window_alter(&$new_window, $format) {
  if ($format == 'foo') {
    $new_window = variable_get('print_foo_new_window', FALSE);
  }
}