[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/sites/all/modules/calendar/calendar_ical/ -> calendar_ical.module (source)

   1  <?php
   2  // $Id: calendar_ical.module,v 1.1.2.6 2008/11/24 15:48:15 karens Exp $
   3  
   4  /**
   5   * Implementation of hook_views_api().
   6   *
   7   * This one is used as the base to reduce errors when updating.
   8   */
   9  function calendar_ical_views_api() {
  10    return array(
  11      'api' => 2,
  12      'path' => drupal_get_path('module', 'calendar_ical'),
  13    );
  14  }
  15  
  16  /**
  17   * @file
  18   * Adds ical functionality to Calendar.
  19   */
  20  function calendar_ical_theme() {
  21    return array(
  22      'calendar_ical_icon' => array(
  23        'arguments' => array('url'),
  24        ),
  25      );
  26  }
  27  
  28  function theme_calendar_ical_icon($url) {
  29    if ($image = theme('image', drupal_get_path('module', 'date_api') .'/images/ical16x16.gif', t('Add to calendar'), t('Add to calendar'))) {
  30      return '<div style="text-align:right"><a href="'. check_url($url) .'" class="ical-icon" title="ical">'. $image .'</a></div>';
  31    }
  32  }


Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7