| 1 system.api.php | hook_icon_get_all_details_alter(&$icons) |
Modify the list of icon details.
@since 1.34.0 Hook added.
Parameters
array $icons: This parameter is passed by reference. It contains the entire list of available icons with details about each icon, keyed by the icon name.
See also
Related topics
File
- core/
modules/ system/ system.api.php, line 544 - Hooks provided by Backdrop core and the System module.
Code
function hook_icon_get_all_details_alter(&$icons) {
foreach ($icons as $icon) {
if (strpos($icon['name'], 'my_module') === 0) {
$icon['style'] = 'my_module_style';
}
}
}