You are here

function oauth_common_edit_context in OAuth 1.0 7.3

Same name and namespace in other branches
  1. 6.3 oauth_common.admin.inc \oauth_common_edit_context()
  2. 7.4 oauth_common.admin.inc \oauth_common_edit_context()

Edit a context.

Called from both the add and edit points to provide for common flow.

1 call to oauth_common_edit_context()
oauth_common_add_context in ./oauth_common.admin.inc
Handle the add context page.
1 string reference to 'oauth_common_edit_context'
oauth_common_providerui_menu in ./oauth_common_providerui.module
Implements hook_menu().

File

./oauth_common.admin.inc, line 157
Administration pages for OAuth module.

Code

function oauth_common_edit_context($context) {
  if (!is_object($context)) {
    $context = oauth_common_context_load($context);
  }
  if ($context && !empty($context->title)) {
    drupal_set_title($context->title);
  }
  return drupal_get_form('oauth_common_edit_form_context', $context);
}