You are here

function oauth_common_context_save in OAuth 1.0 7.4

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

Saves an context in the database.

Return value

void

1 call to oauth_common_context_save()
oauth_common_edit_form_context_submit in ./oauth_common.admin.inc
Process submission of the mini panel edit form.

File

./oauth_common.module, line 533

Code

function oauth_common_context_save($context) {
  $update = isset($context->cid) ? array(
    'cid',
  ) : array();
  drupal_write_record('oauth_common_context', $context, $update);
}