Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
fedcd1ac
Commit
fedcd1ac
authored
Nov 01, 2009
by
Angie Byron
Browse files
#620228
by c960657: Fixed parameter name in number.module.
parent
c409a47f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/field/modules/number/number.module
View file @
fedcd1ac
...
...
@@ -178,7 +178,7 @@ function number_field_instance_settings_form($field, $instance) {
* - 'number_min': The value is smaller than the allowed minimum value.
* - 'number_max': The value is larger than the allowed maximum value.
*/
function
number_field_validate
(
$obj_type
,
$
node
,
$field
,
$instance
,
$langcode
,
$items
,
&
$errors
)
{
function
number_field_validate
(
$obj_type
,
$
object
,
$field
,
$instance
,
$langcode
,
$items
,
&
$errors
)
{
foreach
(
$items
as
$delta
=>
$item
)
{
if
(
$item
[
'value'
]
!=
''
)
{
if
(
is_numeric
(
$instance
[
'settings'
][
'min'
])
&&
$item
[
'value'
]
<
$instance
[
'settings'
][
'min'
])
{
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment