You are here

function theme_date_ical_icon in Date iCal 7

Same name and namespace in other branches
  1. 7.3 date_ical.module \theme_date_ical_icon()
  2. 7.2 date_ical.module \theme_date_ical_icon()

The theme for the ical icon.

1 theme call to theme_date_ical_icon()
date_ical_plugin_style_ical_feed::attach_to in ./date_ical_plugin_style_ical_feed.inc

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>';
  }
}