function _agenda_feed_url in Agenda 6
Same name and namespace in other branches
- 7 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 445
Code
function _agenda_feed_url($googleid, $block) {
$url = sprintf(AGENDA_SOURCEPATTERN, urlencode(check_plain($googleid)), date('Y-m-d', strtotime($block->start)), date('Y-m-d', strtotime($block->end)), $block->maxevents);
return $url;
}