Calendar add date programmatically I am having a bit of trouble figuring out a thing with Drupal Calendar.

I have created a custom content type , with a date field.
I display the dates as events in a Calendar style view.

I want to add custom "event" on the day(s) after this event,based on some PHP logic.
What would be a starting place to start modfitying it  ?

For example: I insert 26th of May as a date (in a node of my custom content type).
If the day is Saturday, I want the next day to be also marked in the calendar.
Since the event is a content type. You could use hook_cron to find expired events and add new event node. 

Add node programmatically. 

  $body_text = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry.';

  $node = new stdClass();
  $node-&gt;type = 'article';
  node_object_prepare($node);

  $node-&gt;title    = 'Node Created Programmatically on ' . date('c');
  $node-&gt;language = LANGUAGE_NONE;

  $node-&gt;body[$node-&gt;language][0]['value']   = $body_text;
  $node-&gt;body[$node-&gt;language][0]['summary'] = text_summary($body_text);
  $node-&gt;body[$node-&gt;language][0]['format']  = 'filtered_html';

  $path = 'content/my-lipsum-' . date('YmdHis');
  $node-&gt;path = array('alias' =&gt; $path);

  node_save($node);


How to programmatically create node in drupal 7