Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
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
Issue #2150071: Added support for the Location module. Thanks, kpaxman!
parent
009ebcfe
Changes
2
Hide whitespace changes
Inline
Side-by-side
date_ical.module
View file @
425b8d5f
...
...
@@ -332,6 +332,7 @@ function _date_ical_get_location_fields($base = 'node') {
'text_with_summary'
,
'node_reference'
,
'addressfield'
,
'location'
);
if
(
!
$info
||
!
in_array
(
$info
[
'type'
],
$supported_location_fields
))
{
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 {
}
$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
{
$location
=
check_plain
(
$location_field
[
'value'
]);
}
...
...
Write
Preview
Supports
Markdown
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