*/ /** * This controller will switch the detail mode in the session * and return to the previous page * * @package Exif * @subpackage UserInterface */ class SwitchDetailModeController extends GalleryController { /** * @see GalleryController::handleRequest */ function handleRequest() { global $gallery; $mode = GalleryUtilities::getRequestVariables('mode'); if ($mode != 'summary' && $mode != 'detailed') { $mode = 'summary'; } /* Store the new mode in the session */ $session =& $gallery->getSession(); $session->put('exif.module.LoadExifInfo.mode', $mode); $results['return'] = 1; $results['redirect']['view'] = 'core.ShowItem'; $results['status'] = array(); $results['error'] = array(); return array(null, $results); } } ?>