You are here

function oauth_common_context_new in OAuth 1.0 7.3

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

Create a new context with defaults appropriately set from schema.

Return value

stdClass A context initialized with the default values.

1 call to oauth_common_context_new()
oauth_common_add_context in ./oauth_common.admin.inc
Handle the add context page.

File

./oauth_common.module, line 448

Code

function oauth_common_context_new() {
  if (!module_exists('ctools')) {
    return FALSE;
  }
  ctools_include('export');
  return ctools_export_new_object('oauth_common_context');
}