You are here

function oauth_common_context_save in OAuth 1.0 6.3

Same name and namespace in other branches
  1. 7.4 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

2 calls to oauth_common_context_save()
oauth_common_edit_form_context_submit in ./oauth_common.admin.inc
Process submission of the mini panel edit form.
_oauth_common_update_6200 in updates/update.6200.inc
This update turns the contexts into ctools-manageable entities and migrates the authorization levels into the new contexts table.

File

./oauth_common.module, line 518

Code

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