[ Index ]

PHP Cross Reference of Drupal 6 (gatewave)

title

Body

[close]

/sites/all/modules/date/theme/ -> date-valarm.tpl.php (source)

   1  <?php
   2  // $Id: date-valarm.tpl.php,v 1.1.2.2 2008/10/10 21:01:58 karens Exp $
   3  /**
   4   * $alarm
   5   *   An array with the following information about each alarm:
   6   * 
   7   *   $alarm['action'] - the action to take, either 'DISPLAY' or 'EMAIL'
   8   *   $alarm['trigger'] - the time period for the trigger, like -P2D.
   9   *   $alarm['repeat'] - the number of times to repeat the alarm.
  10   *   $alarm['duration'] - the time period between repeated alarms, like P1D.
  11   *   $alarm['description'] - the description of the alarm.
  12   * 
  13   *   An email alarm should have two additional parts:
  14   *   $alarm['email'] - a comma-separated list of email recipients.
  15   *   $alarm['summary'] - the subject of the alarm email.
  16   */
  17  ?>
  18  BEGIN:VALARM
  19  ACTION:<?php print $alarm['action']  . "\n";?>
  20  <?php if (!empty($alarm['trigger'])): ?>
  21  TRIGGER:<?php print $alarm['trigger']  . "\n"; ?> 
  22  <?php endif; ?>
  23  <?php if (!empty($alarm['repeat'])): ?>
  24  REPEAT:<?php print $alarm['repeat']  . "\n"; ?>
  25  <?php endif; ?>
  26  <?php if (!empty($alarm['duration'])): ?>
  27  DURATION:<?php print $alarm['duration']  . "\n"; ?>
  28  <?php endif; ?>
  29  <?php if ($alarm['action'] == 'EMAIL'): ?>
  30  ATTENDEE:MAILTO:<?php print $alarm['email']  . "\n" ?>
  31  SUMMARY:<?php print $alarm['summary']  . "\n" ?>
  32  <?php endif; ?>
  33  DESCRIPTION:<?php print $alarm['description']  . "\n" ?>
  34  END:VALARM


Generated: Thu Mar 24 11:18:33 2011 Cross-referenced by PHPXref 0.7