public function editAction()
 {
     $this->acl->checkPermission('is logged in');
     $user = $this->auth->getLoggedInUser();
     $form = new \DF\Form($this->current_module_config->forms->profile);
     $user_profile = $user->toArray();
     $user_profile['customization'] = array_merge(\PVL\Customization::getDefaults(), $user_profile['customization']);
     unset($user_profile['auth_password']);
     $form->setDefaults($user_profile);
     if ($_POST && $form->isValid($_POST)) {
         $data = $form->getValues();
         $user->fromArray($data);
         $user->save();
         foreach ($data['customization'] as $custom_key => $custom_val) {
             \PVL\Customization::set($custom_key, $custom_val);
         }
         $this->alert('Profile saved!', 'green');
         $this->redirectFromHere(array('action' => 'index'));
         return;
     }
     $this->renderForm($form, 'edit', 'Edit Profile');
 }