You are here

function _event_node_ical in Event 5

Same name and namespace in other branches
  1. 5.2 event.module \_event_node_ical()
3 calls to _event_node_ical()
event_block in ./event.module
Provides the blocks that this module is capable of displaying.
event_calendar_ical in ./event.module
Creates an ical feed of events.
event_node_ical in ./event.module
Return an ical for a specific event

File

./event.module, line 788

Code

function _event_node_ical($node) {
  $event = array();

  // Allow modules to affect item fields
  node_invoke_nodeapi($node, 'ical item');
  $event['start'] = $node->event_start;
  $event['end'] = $node->event_end;
  $event['location'] = $node->event_location;
  $event['summary'] = $node->title;
  $event['description'] = check_markup($node->teaser ? $node->teaser : $node->body);
  $event['uid'] = url("node/{$node->nid}", NULL, NULL, 1);
  $event['url'] = url("node/{$node->nid}", NULL, NULL, 1);
  return $event;
}