public function register()
    {
        $this->prepare_hook = $this->prepare_hook ?: Hook::subscribe('Wedeto.HTTP.Forms.Form.prepare', [$this, 'hookPrepareForm']);
        $this->validate_hook = $this->validate_hook ?: Hook::subscribe('Wedeto.HTTP.Forms.Form.isValid', [$this, 'hookIsValid']);
    }
public function register()
    {
        $this->prepare_hook = $this->prepare_hook ?: Hook::subscribe('Wedeto.HTTP.Forms.Form.prepare', [$this, 'hookPrepareForm']);
        $this->validate_hook = $this->validate_hook ?: Hook::subscribe('Wedeto.HTTP.Forms.Form.isValid', [$this, 'hookIsValid']);
    }
public function register ( ) { $ this -> prepare_hook = $ this -> prepare_hook ? : Hook :: subscribe ( 'Wedeto.HTTP.Forms.Form.prepare' , [ $ this , 'hookPrepareForm' ] ) ; $ this -> validate_hook = $ this -> validate_hook ? : Hook :: subscribe ( 'Wedeto.HTTP.Forms.Form.isValid' , [ $ this , 'hookIsValid' ] ) ; }
Subscribe to two hooks, prepare and isValid
Subscribe to two hooks prepare and isValid