controllers/Credential.php
protected function addSubmittedCredential()
    {
        $this->controlAccess('module_gapi_credential_add');

        $submitted = $this->getSubmitted();
        $submitted['type'] = $this->data_type;

        if ($this->credential->add($submitted)) {
            $this->redirect('admin/report/gapi', $this->text('Credential has been added'), 'success');
        }

        $this->redirect('', $this->text('Credential has not been added'), 'warning');
    }
protected function addSubmittedCredential()
    {
        $this->controlAccess('module_gapi_credential_add');

        $submitted = $this->getSubmitted();
        $submitted['type'] = $this->data_type;

        if ($this->credential->add($submitted)) {
            $this->redirect('admin/report/gapi', $this->text('Credential has been added'), 'success');
        }

        $this->redirect('', $this->text('Credential has not been added'), 'warning');
    }
protected function addSubmittedCredential ( ) { $ this -> controlAccess ( 'module_gapi_credential_add' ) ; $ submitted = $ this -> getSubmitted ( ) ; $ submitted [ 'type' ] = $ this -> data_type ; if ( $ this -> credential -> add ( $ submitted ) ) { $ this -> redirect ( 'admin/report/gapi' , $ this -> text ( 'Credential has been added' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Credential has not been added' ) , 'warning' ) ; }
Adds a submitted credential
Adds a submitted credential