You are here

protected function TfaTrustedBrowser::deleteTrusted in TFA Basic plugins 7

Delete users trusted browsers.

Parameters

int $did: Optional trusted browser id to delete.

Return value

int

3 calls to TfaTrustedBrowser::deleteTrusted()
TfaTrustedBrowserSetup::deleteTrustedBrowsers in includes/tfa_trusted_browser.inc
Delete all trusted browsers.
TfaTrustedBrowserSetup::deleteTrustedId in includes/tfa_trusted_browser.inc
Delete a trusted browser by its ID.
TfaTrustedBrowserSetup::submitSetupForm in includes/tfa_trusted_browser.inc
@copydoc TfaSetupPluginInterface::submitSetupForm()

File

includes/tfa_trusted_browser.inc, line 159
classes for TFA basic plugin

Class

TfaTrustedBrowser
Class TfaTrustedBrowser

Code

protected function deleteTrusted($did = NULL) {
  $query = db_delete('tfa_trusted_browser')
    ->condition('uid', $this->context['uid']);
  if (is_int($did)) {
    $query
      ->condition('did', $did);
  }
  return $query
    ->execute();
}