Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
V
views_natural_sort
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Custom Issue Tracker
Custom Issue Tracker
Labels
Merge Requests
1
Merge Requests
1
Requirements
Requirements
List
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Analytics
Analytics
Code Review
Insights
Issue
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
project
views_natural_sort
Commits
1dc5cbb7
Commit
1dc5cbb7
authored
Nov 02, 2013
by
generalredneck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#2077939
] Fixed Warning.
parent
dc247e95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
8 deletions
+11
-8
views_natural_sort_text_field.module
views_natural_sort_text_field.module
+11
-8
No files found.
views_natural_sort_text_field.module
View file @
1dc5cbb7
...
...
@@ -110,14 +110,17 @@ function _views_natural_sort_text_field_to_vns($entity_type, $entity, $field) {
//TODO: add support for Field Language
$entries
=
array
();
foreach
(
field_get_items
(
$entity_type
,
$entity
,
$field_name
)
as
$delta
=>
$row
)
{
$entries
[]
=
array
(
'eid'
=>
$entity
->
$entity_id_property
,
'entity_type'
=>
$entity_type
,
'field'
=>
$field_name
,
'delta'
=>
$delta
,
'content'
=>
$row
[
'value'
]
);
$field_items
=
field_get_items
(
$entity_type
,
$entity
,
$field_name
)
if
(
!
empty
(
$field_items
))
{
foreach
(
$field_items
as
$delta
=>
$row
)
{
$entries
[]
=
array
(
'eid'
=>
$entity
->
$entity_id_property
,
'entity_type'
=>
$entity_type
,
'field'
=>
$field_name
,
'delta'
=>
$delta
,
'content'
=>
$row
[
'value'
]
);
}
}
return
$entries
;
}
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