Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
D
date_ical
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
drupal.org
date_ical
Commits
425b8d5f
Commit
425b8d5f
authored
Dec 04, 2013
by
KevinPaxman
Committed by
Robert Rollins
Dec 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #2150071: Added support for the Location module. Thanks, kpaxman!
parent
009ebcfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
date_ical.module
date_ical.module
+1
-0
includes/date_ical_plugin_row_ical_entity.inc
includes/date_ical_plugin_row_ical_entity.inc
+18
-0
No files found.
date_ical.module
View file @
425b8d5f
...
@@ -332,6 +332,7 @@ function _date_ical_get_location_fields($base = 'node') {
...
@@ -332,6 +332,7 @@ function _date_ical_get_location_fields($base = 'node') {
'text_with_summary'
,
'text_with_summary'
,
'node_reference'
,
'node_reference'
,
'addressfield'
,
'addressfield'
,
'location'
);
);
if
(
!
$info
||
!
in_array
(
$info
[
'type'
],
$supported_location_fields
))
{
if
(
!
$info
||
!
in_array
(
$info
[
'type'
],
$supported_location_fields
))
{
continue
;
continue
;
...
...
includes/date_ical_plugin_row_ical_entity.inc
View file @
425b8d5f
...
@@ -259,6 +259,24 @@ class date_ical_plugin_row_ical_entity extends views_plugin_row {
...
@@ -259,6 +259,24 @@ class date_ical_plugin_row_ical_entity extends views_plugin_row {
}
}
$location
=
implode
(
', '
,
array_reverse
(
$locations
));
$location
=
implode
(
', '
,
array_reverse
(
$locations
));
}
}
elseif
(
$location_info
[
'type'
]
==
'location'
)
{
$included_fields
=
array
(
'name'
,
'additional'
,
'street'
,
'city'
,
'province_name'
,
'postal_code'
,
'country_name'
);
$location_data
=
array
();
foreach
(
$included_fields
as
$included_field
)
{
if
(
!
empty
(
$location_field
[
$included_field
]))
{
$locations_data
[]
=
$location_field
[
$included_field
];
}
}
$location
=
check_plain
(
implode
(
', '
,
$location_data
));
}
else
{
else
{
$location
=
check_plain
(
$location_field
[
'value'
]);
$location
=
check_plain
(
$location_field
[
'value'
]);
}
}
...
...
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