function oauth_common_context_new in OAuth 1.0 6.3
Same name and namespace in other branches
- 7.4 oauth_common.module \oauth_common_context_new()
- 7.3 oauth_common.module \oauth_common_context_new()
Create a new context with defaults appropriately set from schema.
Return value
stdClass An context initialized with the default values.
2 calls to oauth_common_context_new()
- oauth_common_add_context in ./
oauth_common.admin.inc - Handle the add context page.
- _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 439
Code
function oauth_common_context_new() {
if (!module_exists('ctools')) {
return FALSE;
}
ctools_include('export');
return ctools_export_new_object('oauth_common_context');
}