2, 'path' => drupal_get_path('module', 'calendar_ical'), ); } /** * @file * Adds ical functionality to Calendar. */ function calendar_ical_theme() { return array( 'calendar_ical_icon' => array( 'arguments' => array('url'), ), ); } function theme_calendar_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 '
'. $image .'
'; } }