*/ /** * This controller will handle the setting of MultiLang module options * * @package MultiLang * @subpackage UserInterface */ class CantActivateController extends GalleryController { /** * @see GalleryController::handleRequest */ function handleRequest($form) { /* Figure out where to redirect upon success */ $results['redirect']['view'] = 'core.SiteAdmin'; $results['redirect']['subView'] = 'core.AdminModules'; $results['status'] = array(); $results['error'] = array(); return array(null, $results); } } /** * This view will complain about missing gettext * * @package MultiLang * @subpackage UserInterface */ class CantActivateView extends GalleryView { /** * @see GalleryView::loadTemplate */ function loadTemplate(&$template, &$form) { global $gallery; $translator =& $gallery->getTranslator(); if ($form['formName'] != 'CantActivate') { $form['formName'] = 'CantActivate'; } $template->setVariable('controller', 'multilang.CantActivate'); return array(null, array('body' => 'modules/multilang/templates/CantActivate.tpl')); } } ?>