/** * Helper function to get data for a single event from an id * * @param $id {string} * The event id * @return {object} * Return the event data or FALSE */ function uwmadison_events_get_event_data($id) { return uwmadison_events_object()->getEvent($id); }
public function __construct() { parent::__construct('uwmadison_events_widget', 'UW-Madison Events', array('description' => 'UW-Madison events calendar widget')); // Shortcut to acess the instantiated UwEvents object $this->uwe = uwmadison_events_object(); }