You are here

function oauth_common_context_load in OAuth 1.0 7.4

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

Load a single context.

Parameters

string $name: The name of the context.

Return value

stdClass The context configuration.

9 calls to oauth_common_context_load()
oauth_common_context_from_request in ./oauth_common.module
Loads the context for a request.
oauth_common_delete_confirm_context in ./oauth_common.admin.inc
Provide a form to confirm deletion of a context.
oauth_common_delete_confirm_context_submit in ./oauth_common.admin.inc
Handle the submit button to delete a context.
oauth_common_edit_context in ./oauth_common.admin.inc
Edit an context.
oauth_common_export_context in ./oauth_common.admin.inc
Page callback to export a context to PHP code.

... See full list

File

./oauth_common.module, line 470

Code

function oauth_common_context_load($name) {
  if (!module_exists('ctools')) {
    return FALSE;
  }
  ctools_include('export');
  $result = ctools_export_load_object('oauth_common_context', 'names', array(
    $name,
  ));
  if (isset($result[$name])) {
    return $result[$name];
  }
  else {
    return FALSE;
  }
}