You are here

function _agenda_feed_url in Agenda 7

Same name and namespace in other branches
  1. 6 agenda.module \_agenda_feed_url()

Return the remote path to the google feed

@access private

Parameters

string $googleid The calendars Google ID:

object $block The agenda block settings:

Return value

object An object containing the status, request and result

2 calls to _agenda_feed_url()
agenda_debug in ./agenda.admin.php
Provide a page to debug a calendar ID that is not working
_agenda_load_xml in ./agenda.module
Fetch the gData feed and parse the XML

File

./agenda.module, line 423

Code

function _agenda_feed_url($address, $key, $block) {
  $url = sprintf(AGENDA_SOURCEPATTERN, urlencode(check_plain($address)), urlencode(check_plain($key)), date('Y-m-d', strtotime($block->start)), date('Y-m-d', strtotime($block->end)), $block->maxevents, $block->timezone);
  return $url;
}