/** * Writes a cancel button and invokes a cancel operation (eg a checkin) * @param string An override for the task * @param string An override for the alt text */ function cancel($task = 'cancel', $alt = null) { mosMenuBar::addToToolBar($task, $alt, T_('Cancel'), 'cancel'); }