Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal-3253715
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
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
Issue forks
drupal-3253715
Commits
e33582f9
Commit
e33582f9
authored
16 years ago
by
Dries Buytaert
Browse files
Options
Downloads
Patches
Plain Diff
- Patch
#281943
by webchick, Arancaytar, dropcube et al: order install profiles alphabetically.
parent
ce944326
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
install.php
+24
-6
24 additions, 6 deletions
install.php
with
24 additions
and
6 deletions
install.php
+
24
−
6
View file @
e33582f9
...
...
@@ -448,23 +448,41 @@ function install_select_profile() {
/**
* Form API array definition for the profile selection form.
*
* @param $form_state
* Array of metadata about state of form processing.
* @param $profile_files
* Array of .profile files, as returned from file_scan_directory().
*/
function
install_select_profile_form
(
&
$form_state
,
$profiles
)
{
foreach
(
$profiles
as
$profile
)
{
function
install_select_profile_form
(
&
$form_state
,
$profile_files
)
{
$profiles
=
array
();
$names
=
array
();
foreach
(
$profile_files
as
$profile
)
{
include_once
(
$profile
->
filename
);
// Load profile details.
// Load profile details and store them for later retrieval.
$function
=
$profile
->
name
.
'_profile_details'
;
if
(
function_exists
(
$function
))
{
$details
=
$function
();
}
// If set, used defined name. Otherwise use file name.
$profiles
[
$profile
->
name
]
=
$details
;
// Determine the name of the profile; default to file name if defined name
// is unspecified.
$name
=
isset
(
$details
[
'name'
])
?
$details
[
'name'
]
:
$profile
->
name
;
$names
[
$profile
->
name
]
=
$name
;
}
// Display radio buttons alphabetically by human-readable name.
natcasesort
(
$names
);
foreach
(
$names
as
$profile
=>
$name
)
{
$form
[
'profile'
][
$name
]
=
array
(
'#type'
=>
'radio'
,
'#value'
=>
'default'
,
'#return_value'
=>
$profile
->
name
,
'#return_value'
=>
$profile
,
'#title'
=>
$name
,
'#description'
=>
isset
(
$
details
[
'description'
])
?
$
details
[
'description'
]
:
''
,
'#description'
=>
isset
(
$
profiles
[
$profile
]
[
'description'
])
?
$
profiles
[
$profile
]
[
'description'
]
:
''
,
'#parents'
=>
array
(
'profile'
),
);
}
...
...
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