예제 #1
0
 /**
  *
  * Save changes about what analytic module will display on dashboard
  *
  */
 public function moduleDisplayAction()
 {
     $this->view->disable();
     if ($this->request->getPost('save')) {
         $listActivity = $this->request->getPost('topActivity');
         if (Settings::setListTopActivity($listActivity)) {
             $this->flashSession->success(t('Save Analytic module(s) position success!'));
         } else {
             $this->flashSession->error(t('An error occured, We can\'t save this change!'));
         }
     }
     return $this->currentRedirect();
 }