You are here

function oauth_common_context_delete in OAuth 1.0 7.3

Same name and namespace in other branches
  1. 6.3 oauth_common.module \oauth_common_context_delete()
  2. 7.4 oauth_common.module \oauth_common_context_delete()

Remove a context.

Return value

void

1 call to oauth_common_context_delete()
oauth_common_delete_confirm_context_submit in ./oauth_common.admin.inc
Handle the submit button to delete a context.

File

./oauth_common.module, line 537

Code

function oauth_common_context_delete($context) {
  db_delete('oauth_common_context')
    ->condition('name', $context->name)
    ->condition('cid', $context->cid)
    ->execute();
}