You are here

function theme_ical_icon in Calendar 5

Same name and namespace in other branches
  1. 5.2 calendar_ical.module \theme_ical_icon()
1 theme call to theme_ical_icon()
calendar_ical_add_ical in ./calendar_ical.module

File

./calendar_ical.module, line 404
Adds ical functionality to Calendar.

Code

function theme_ical_icon($url) {
  if ($image = theme('image', drupal_get_path('module', 'date_api') . '/images/ical16x16.gif', t('Add to calendar'), t('Add to calendar'))) {
    return '<div style="text-align:right"><a href="' . check_url($url) . '" class="ical-icon" title="ical">' . $image . '</a></div>';
  }
}