function theme_calendar_ical_icon in Calendar 7
Same name and namespace in other branches
- 6.2 calendar_ical/calendar_ical.module \theme_calendar_ical_icon()
- 7.2 calendar_ical/calendar_ical.module \theme_calendar_ical_icon()
1 theme call to theme_calendar_ical_icon()
- calendar_plugin_style_ical::attach_to in calendar_ical/
calendar_plugin_style_ical.inc
File
- calendar_ical/
calendar_ical.module, line 27 - Adds ical functionality to Calendar.
Code
function theme_calendar_ical_icon($vars) {
$url = $vars['url'];
$variables = array(
'path' => drupal_get_path('module', 'date_api') . '/images/ical16x16.gif',
'title' => t('Add to calendar'),
t('Add to calendar'),
);
if ($image = theme('image', $variables)) {
return '<div style="text-align:right"><a href="' . check_url($url) . '" class="ical-icon" title="ical">' . $image . '</a></div>';
}
}