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.
If the admin theme isn't set to Bootstrap and the fonts haven't been downloaded from Bootstrap and added into the theme directory, the glyphicons are not made available through the Icon API.
The issue appears to be with using global $theme instead of specifying bootstrap directly. Patch attached.
Comment | File | Size | Author |
---|---|---|---|
#2 | bootstrap-icons-admin-theme-2120479-2.patch | 822 bytes | geodaniel |
bootstrap-icons-admin-theme-issue.patch | 764 bytes | geodaniel | |
Comments
Comment #1
markhalliwellInstead of using
global $theme
, we should instead probably use$theme = variable_get('theme_default', $GLOBALS['theme']);
, the rest of the if statement is fine though. We cannot limit this to the base theme, it has to be per theme basis.Comment #2
geodaniel CreditAttribution: geodaniel commentedThat makes sense. Presumably the bootstrap files would still be in the bootstrap directory itself, it's just the CDN setting that needs to be controllable by the sub theme.
Updated patch attached.
Comment #3
markhalliwellThis still shouldn't change.
Comment #4
markhalliwellThanks @geodaniel! Just went ahead and made that small change for you.
Committed c4dc942 to 7.x-3.x: