Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
iconify_icons
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
iconify_icons
Commits
3cecba26
Commit
3cecba26
authored
2 months ago
by
David Galeano
Browse files
Options
Downloads
Patches
Plain Diff
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
!23
Issue #3480854 by gxleano: Add settings form to allow collections and create...
,
!22
Issue #3480854 by gxleano: Add settings form to allow collections and create...
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/iconify_icons_provider/iconify_icons_provider.module
+1
-1
1 addition, 1 deletion
modules/iconify_icons_provider/iconify_icons_provider.module
with
1 addition
and
1 deletion
modules/iconify_icons_provider/iconify_icons_provider.module
+
1
−
1
View file @
3cecba26
...
...
@@ -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
]))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment