summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Carver2013-04-29 07:14:42 (GMT)
committer Mark Carver2013-04-29 07:14:42 (GMT)
commite426a14c1617361532d48ad669f3fda22f51dd38 (patch)
tree010b522fd9995781cab34a676c75dc68b312a912
parent29fcf5397eb06710b8cdc44efe827a6ae81d862c (diff)
Added hook_icon_providers() and changed some verbiage for Icon API.
-rw-r--r--includes/icons.inc17
1 files changed, 14 insertions, 3 deletions
diff --git a/includes/icons.inc b/includes/icons.inc
index cff2238..10aed96 100644
--- a/includes/icons.inc
+++ b/includes/icons.inc
@@ -6,14 +6,25 @@
*/
/**
+ * Implements hook_icon_providers().
+ */
+function bootstrap_icon_providers() {
+ $providers['bootstrap'] = array(
+ 'title' => t('Bootstrap'),
+ 'url' => 'http://twitter.github.com/bootstrap/base-css.html#icons',
+ );
+ return $providers;
+}
+
+/**
* Implements hook_icon_bundles().
*/
function bootstrap_icon_bundles() {
- $bundles['bootstrap_glyphicons'] = array(
+ $bundles['bootstrap'] = array(
'render' => 'sprite',
- 'provider' => t('Bootstrap (Icons by Glyphicons)'),
- 'url' => 'http://twitter.github.com/bootstrap/base-css.html#icons',
+ 'provider' => 'bootstrap',
'title' => t('Bootstrap'),
+ 'version' => t('Icons by Glyphicons'),
'variations' => array(
'icon-white' => t('White'),
),