This module provides integration for icon bundles and icon providers throughout Drupal.
Integrations
- icon_block - icon support for blocks.
- icon_menu - icon support for menu items.
- icon_field - icon support on field-able entities.
- icon_filter - icon support as a filter for text-area fields.
Providers (via module or theme)
- IcoMoon (provider link)
- Fontello (provider link)
- Bootstrap (provider link)
- Font Awesome (provider link)
- FAMFAMFAM (provider link)
API/Documentation
Icon API comes with extensive documentation on how to integrate your module or service provider. If you need additional help, look at the previously mentioned providers for examples.
Icon Filter Sub-Module
Add an icon inside formatted text-area fields that have the icon filter enabled: [icon:%bundle:%icon]
.
%bundle
is the bundle machine name, like: my_bundle
%icon
is the icon machine name, like: my_icon
Usage in Code
All you need to know is the bundle's machine name and the icon machine name, Icon API handles the rest!
$element[] = array(
'#theme' => 'icon',
'#bundle' => 'my_bundle',
'#icon' => 'my_icon',
);
print drupal_render($element);
Project information
- Unsupported
Not supported (i.e. abandoned), and no longer being developed. Learn more about dealing with unsupported (abandoned) projects - Obsolete
Use of this project is deprecated. - 7,200 sites report using this module
- Created by ximo on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 18 Jun 2018 at 14:43 UTC