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
df42e7c1
Commit
df42e7c1
authored
Jan 23, 2013
by
Robert Rollins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added webcal:// support on the iCal icon.
parent
bd9f50e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
date_ical.module
date_ical.module
+3
-0
No files found.
date_ical.module
View file @
df42e7c1
...
...
@@ -38,6 +38,9 @@ function theme_date_ical_icon($variables) {
'title'
=>
t
(
'Add to my calendar'
),
'alt'
=>
t
(
'Add to my calendar'
),
);
// Change the scheme to webcal:// so that calendar clients can automatically
// subscribe via the iCal link.
$url
=
str_replace
(
'http://'
,
'webcal://'
,
$url
);
if
(
$image
=
theme
(
'image'
,
$variables
))
{
return
'<a href="'
.
check_url
(
$url
)
.
'" class="ical-icon" title="ical">'
.
$image
.
'</a>'
;
}
...
...
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