Skip to content
Snippets Groups Projects
Commit 3cecba26 authored by David Galeano's avatar David Galeano
Browse files

Issue #3480854 by gxleano: Update icon_pack_name to use lowercase and underscore

parent ffd8adcd
No related branches found
No related tags found
2 merge requests!23Issue #3480854 by gxleano: Add settings form to allow collections and create...,!22Issue #3480854 by gxleano: Add settings form to allow collections and create...
......@@ -22,7 +22,7 @@ function iconify_icons_provider_icon_pack_alter(array &$icon_pack_definitions):
// Iterate through each collection and create a corresponding icon pack.
foreach ($collections as $collection) {
// Generate a machine name for the icon pack based on the collection name.
$icon_pack_name = _iconify_icons_provider_generate_icon_pack_name($collection);
$icon_pack_name = strtolower(preg_replace('/[^a-z0-9_]/', '_', _iconify_icons_provider_generate_icon_pack_name($collection)));
// Check if the icon pack definition already exists, and skip if it does.
if (!isset($icon_pack_definitions[$icon_pack_name])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment