arguments = array( 'redirect' => array( 'type' => 'textfield', 'label' => lang('Specify where URL of the day links to'), ), ); $this->title = lang('Calendar'); $this->description = lang('This module displays the current month'); } function get_content(&$arguments,$properties) { if (!is_object($GLOBALS['egw']->jscalendar)) { $GLOBALS['egw']->jscalendar =& CreateObject('phpgwapi.jscalendar'); } $date = (int) (strtotime(get_var('date',array('POST','GET')))); $redirect = $arguments['redirect'] ? $arguments['redirect'] : '#'; return $GLOBALS['egw']->jscalendar->flat($redirect,$date); } }