controllers/Credential.php
protected function submitDeleteCredential()
    {
        if ($this->isPosted('delete') && isset($this->data_credential['credential_id'])) {

            $this->controlAccess('module_gapi_credential_delete');

            if ($this->credential->callHandler($this->data_credential['type'], 'delete', array(
                $this->data_credential['credential_id']))) {
                $this->redirect('admin/report/gapi', $this->text('Credential has been deleted'), 'success');
            }

            $this->redirect('', $this->text('Credential has not been deleted'), 'warning');
        }
    }
protected function submitDeleteCredential()
    {
        if ($this->isPosted('delete') && isset($this->data_credential['credential_id'])) {

            $this->controlAccess('module_gapi_credential_delete');

            if ($this->credential->callHandler($this->data_credential['type'], 'delete', array(
                $this->data_credential['credential_id']))) {
                $this->redirect('admin/report/gapi', $this->text('Credential has been deleted'), 'success');
            }

            $this->redirect('', $this->text('Credential has not been deleted'), 'warning');
        }
    }
protected function submitDeleteCredential ( ) { if ( $ this -> isPosted ( 'delete' ) && isset ( $ this -> data_credential [ 'credential_id' ] ) ) { $ this -> controlAccess ( 'module_gapi_credential_delete' ) ; if ( $ this -> credential -> callHandler ( $ this -> data_credential [ 'type' ] , 'delete' , array ( $ this -> data_credential [ 'credential_id' ] ) ) ) { $ this -> redirect ( 'admin/report/gapi' , $ this -> text ( 'Credential has been deleted' ) , 'success' ) ; } $ this -> redirect ( '' , $ this -> text ( 'Credential has not been deleted' ) , 'warning' ) ; } }
Delete a submitted credential
Delete a submitted credential