public function processform()
 {
     litepublisher::$urlmap->clearcache();
     switch ($this->name) {
         case 'widgets':
             $idwidget = (int) tadminhtml::getparam('idwidget', 0);
             $widgets = twidgets::i();
             if ($widgets->itemexists($idwidget)) {
                 $widget = $widgets->getwidget($idwidget);
                 return $widget->admin->processform();
             } else {
                 if (isset($_POST['action'])) {
                     self::setsidebars();
                 }
                 return $this->html->h2->success;
             }
         case 'addcustom':
             $widget = tcustomwidget::i();
             return $widget->admin->processform();
     }
 }