Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently 'expand_css' is a theme function var, but you can't actually set it, anywhere. The only way to change it globally:
/**
* Implements hook_theme_registry_alter().
*/
function YOURMOD_theme_registry_alter(&$registry) {
$registry['print']['variables']['expand_css'] = TRUE;
}
which is weird. I think this should be a global setting, like Access images via local file access (they're even slighly related).
Maybe a patch later.
Comment | File | Size | Author |
---|---|---|---|
#2 | print-2566965-2.patch | 1.6 KB | rudiedirkx |
Comments
Comment #2
rudiedirkx CreditAttribution: rudiedirkx commentedThis is a weird method that uses the same tactic: change the default in the theme function.
Comment #3
jcnventura CreditAttribution: jcnventura at 1xINTERNET commentedThis variable is internal to the module, and used only when sending by email. No need for users to set it.