Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
project
drupal
Commits
9528f219
Commit
9528f219
authored
Apr 15, 2014
by
webchick
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue
#2240019
by cs_shadow | alexpott: Incorrect API documentation in hook_ranking.
parent
574c5c47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
core/modules/node/node.api.php
core/modules/node/node.api.php
+1
-1
No files found.
core/modules/node/node.api.php
View file @
9528f219
...
...
@@ -898,7 +898,7 @@ function hook_ranking() {
// always 0, should be 0.
'score'
=>
'vote_node_data.average / CAST(%f AS DECIMAL)'
,
// Pass in the highest possible voting score as a decimal argument.
'arguments'
=>
array
(
\
Drupal
::
config
(
'vote.settings'
)
.
get
(
'score_max'
)),
'arguments'
=>
array
(
\
Drupal
::
config
(
'vote.settings'
)
->
get
(
'score_max'
)),
),
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment