/[drupal]/contributions/modules/rsvp/rsvp.api.inc
ViewVC logotype

Diff of /contributions/modules/rsvp/rsvp.api.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.5, Wed Oct 14 07:01:32 2009 UTC revision 1.2.2.6, Thu Nov 5 22:36:47 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: rsvp.api.inc,v 1.2.2.4 2009/03/01 22:26:13 ulf1 Exp $  // $Id: rsvp.api.inc,v 1.2.2.5 2009/10/14 07:01:32 ulf1 Exp $
3    
4  /**  /**
5   * @module rsvp_api   * @module rsvp_api
# Line 58  function rsvp_api_create_invitation($nid Line 58  function rsvp_api_create_invitation($nid
58          $count = $connector->get_datecount($node, $field);          $count = $connector->get_datecount($node, $field);
59          if ($count == 1) {          if ($count == 1) {
60            //if count = 1 ignore parameter startdate completely because there is only one startdate            //if count = 1 ignore parameter startdate completely because there is only one startdate
61            $rsvp->startdate = $connector->get_startdate($node, $field, 0);            $rsvp->startdate = $connector->get_startdateAsHash($node, $field, 0);
62          }          }
63          else {          else {
64            $do_create = false;            $do_create = false;
65            //iterate through all specified startdates (in case of repeating dates)            //iterate through all specified startdates (in case of repeating dates)
66            for ($i = 0; $i < $count; $i++) {            for ($i = 0; $i < $count; $i++) {
67              $key = $connector->get_startdate($node, $field, $i);              $key = $connector->get_startdateAsHash($node, $field, $i);
68    
69              if ($key == $startdate) {              if ($key == $startdate) {
70                $rsvp->startdate = $key;                $rsvp->startdate = $key;

Legend:
Removed from v.1.2.2.5  
changed lines
  Added in v.1.2.2.6

  ViewVC Help
Powered by ViewVC 1.1.2