summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorreyero2018-07-20 13:37:04 (GMT)
committerMark Carver2018-07-20 13:37:04 (GMT)
commitc050d1d6ae85ef344be85dbf0a4ed9ec68ac32ce (patch)
treeb4f86facd8a503b09c04efbfbfaa1efd4808269a
parent908e4e5333bf62ab2a5312e4784ec44551f3bcd6 (diff)
Issue #2974394 by Jose Reyero: Caching issue with Icon API, bootstrap_icon_bundles() returns nothing, glyphicons disappear7.x-3.21
-rw-r--r--includes/icons.inc30
1 files changed, 14 insertions, 16 deletions
diff --git a/includes/icons.inc b/includes/icons.inc
index 56a5aaf..8f56784 100644
--- a/includes/icons.inc
+++ b/includes/icons.inc
@@ -22,21 +22,19 @@ function bootstrap_icon_providers() {
* Implements hook_icon_bundles().
*/
function bootstrap_icon_bundles() {
- $bundles = array();
- if (_bootstrap_glyphicons_supported()) {
- $bundles['bootstrap'] = array(
- 'render' => 'sprite',
- 'provider' => 'bootstrap',
- 'title' => t('Bootstrap'),
- 'version' => t('Icons by Glyphicons'),
- 'variations' => array(
- 'icon-white' => t('White'),
- ),
- 'settings' => array(
- 'tag' => 'span',
- ),
- 'icons' => _bootstrap_glyphicons(),
- );
- }
+ $bundles['bootstrap'] = array(
+ 'render' => 'sprite',
+ 'provider' => 'bootstrap',
+ 'title' => t('Bootstrap'),
+ 'version' => t('Icons by Glyphicons'),
+ 'variations' => array(
+ 'icon-white' => t('White'),
+ ),
+ 'settings' => array(
+ 'tag' => 'span',
+ ),
+ 'icons' => _bootstrap_glyphicons(),
+ );
+
return $bundles;
}