function theme_date_ical_icon in Date iCal 7
Same name and namespace in other branches
- 7.3 date_ical.module \theme_date_ical_icon()
- 7.2 date_ical.module \theme_date_ical_icon()
The theme for the ical icon.
1 theme call to theme_date_ical_icon()
File
- ./
date_ical.module, line 32 - Adds ical functionality to Views.
Code
function theme_date_ical_icon($variables) {
$url = $variables['url'];
$variables = array(
'path' => drupal_get_path('module', 'date_ical') . '/images/ical-feed-icon-34x14.png',
'title' => t('Add to calendar'),
'alt' => t('Add to calendar'),
);
if ($image = theme('image', $variables)) {
return '<a href="' . check_url($url) . '" class="ical-icon" title="ical">' . $image . '</a>';
}
}