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.
When using a module like Print I get errors like this:
It looks like profiles/openatrium/modules/contrib/print/assets/stylesheets/screen.css has not been created yet.
This is because Radix is using path_to_theme() to get the theme path, which is not correct when called within certain modules. The correct way to always get the current theme path is:
drupal_get_path('theme',$GLOBALS['theme']) as per https://api.drupal.org/api/drupal/includes%21theme.inc/function/path_to_...
Patch forthcoming.
Comment | File | Size | Author |
---|---|---|---|
#1 | radix_theme_path-2227537-1.patch | 904 bytes | mpotter |
Comments
Comment #1
mpotter CreditAttribution: mpotter commentedHere is the patch for Radix 2.x. Can be easily ported to 3.x.
Comment #4
shadcn CreditAttribution: shadcn commentedThanks. Committed to both 2.x and 3.x.