varnish.install in Varnish 6
Same filename and directory in other branches
Updates for the varnish module.
File
varnish.installView source
<?php
/**
* @file
* Updates for the varnish module.
*/
/**
* Changes the varnish_legacy variable to a varnish_version variable
* that is a little more flexible.
*/
function varnish_update_6100(&$sandbox) {
$legacy = variable_get('varnish_legacy', 0);
if ($legacy) {
variable_set('varnish_version', 2.0);
}
return array();
}
Functions
Name | Description |
---|---|
varnish_update_6100 | Changes the varnish_legacy variable to a varnish_version variable that is a little more flexible. |