function print_update_6006 in Printer, email and PDF versions 6
Same name and namespace in other branches
- 5.x print.install \print_update_6006()
Update to version 6.x-1.11
File
- ./
print.install, line 337 - Install file of the print module
Code
function print_update_6006() {
global $base_root, $base_path;
$ret = array();
$t = get_t();
$print_css = variable_get('print_css', '');
$pattern = "!(?:{$base_root})?{$base_path}(.*)!is";
if (preg_match($pattern, strtr($print_css, array(
'%b' => base_path(),
)), $matches)) {
variable_set('print_css', $matches[1]);
}
elseif (!empty($print_css)) {
drupal_set_message($t('Please review your custom stylesheet path in the !url, as the path must now be relative to the base path of the site.', array(
'!url' => l($t('print module settings'), 'admin/settings/print/common'),
)));
}
return $ret;
}