public function cmdOffModule()
    {
        $id = $this->getParam(0);

        if (empty($id)) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        $result = $this->module_model->disable($id);

        if ($result !== true) {
            $this->errorAndExit($result);
        }

        $this->output();
    }
public function cmdOffModule()
    {
        $id = $this->getParam(0);

        if (empty($id)) {
            $this->errorAndExit($this->text('Invalid argument'));
        }

        $result = $this->module_model->disable($id);

        if ($result !== true) {
            $this->errorAndExit($result);
        }

        $this->output();
    }
public function cmdOffModule ( ) { $ id = $ this -> getParam ( 0 ) ; if ( empty ( $ id ) ) { $ this -> errorAndExit ( $ this -> text ( 'Invalid argument' ) ) ; } $ result = $ this -> module_model -> disable ( $ id ) ; if ( $ result !== true ) { $ this -> errorAndExit ( $ result ) ; } $ this -> output ( ) ; }
Callback for "module-off" command
Callback for module - off command