Commit df42e7c1 authored by Robert Rollins's avatar Robert Rollins

Added webcal:// support on the iCal icon.

parent bd9f50e1
......@@ -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>';
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment