Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fivestar-3190556
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
fivestar-3190556
Commits
8312a50c
Commit
8312a50c
authored
17 years ago
by
Nate Lampton
Browse files
Options
Downloads
Patches
Plain Diff
Clarifying implementation of hook_forms() using new arguments.
parent
85042bbc
No related branches found
Branches containing commit
Tags
6.x-1.11-beta3
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fivestar.module
+4
-5
4 additions, 5 deletions
fivestar.module
with
4 additions
and
5 deletions
fivestar.module
+
4
−
5
View file @
8312a50c
...
...
@@ -793,11 +793,10 @@ function fivestar_widget_form($node) {
* forms appear on the same page, each requiring a separate form_id, but all
* using the same underlying callbacks.
*/
function
fivestar_forms
()
{
$args
=
func_get_args
();
if
(
strpos
(
$args
[
0
],
'fivestar_form'
)
!==
FALSE
)
{
if
(
$args
[
0
]
==
'fivestar_form_'
.
$args
[
1
][
0
]
.
'_'
.
$args
[
1
][
1
])
{
$forms
[
$args
[
0
]]
=
array
(
'callback'
=>
'fivestar_form'
);
function
fivestar_forms
(
$form_id
,
$args
)
{
if
(
strpos
(
$form_id
,
'fivestar_form'
)
!==
FALSE
)
{
if
(
$form_id
==
'fivestar_form_'
.
$args
[
0
]
.
'_'
.
$args
[
1
])
{
$forms
[
$form_id
]
=
array
(
'callback'
=>
'fivestar_form'
);
return
$forms
;
}
}
...
...
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