/** * 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 = 'Cancel') { $alt = JText::_($alt); mosToolBar::custom($task, 'cancel_f2.png', '', $alt, false); }