public function execute() { if (!$this->getUser()->getRights('shop', 'settings')) { throw new waRightsException(_w('Access denied')); } $id = waRequest::post('module_id', 0, waRequest::TYPE_INT); $after_id = waRequest::post('after_id', 0, waRequest::TYPE_INT); $model = new shopPluginModel(); try { $model->move($id, $after_id, shopPluginModel::TYPE_SHIPPING); } catch (waException $e) { $this->setError($e->getMessage()); } }