Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
date_ical
Manage
Activity
Members
Labels
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
drupal.org
date_ical
Commits
df42e7c1
There was an error fetching the commit references. Please try again later.
Commit
df42e7c1
authored
12 years ago
by
Robert Rollins
Browse files
Options
Downloads
Patches
Plain Diff
Added webcal:// support on the iCal icon.
parent
bd9f50e1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
date_ical.module
+3
-0
3 additions, 0 deletions
date_ical.module
with
3 additions
and
0 deletions
date_ical.module
+
3
−
0
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>'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment