Skip to content
Snippets Groups Projects
Commit df42e7c1 authored by Robert Rollins's avatar Robert Rollins
Browse files

Added webcal:// support on the iCal icon.

parent bd9f50e1
No related branches found
No related tags found
No related merge requests found
......@@ -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>';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment