function oauth_common_edit_context in OAuth 1.0 6.3
Same name and namespace in other branches
- 7.4 oauth_common.admin.inc \oauth_common_edit_context()
- 7.3 oauth_common.admin.inc \oauth_common_edit_context()
Edit an 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 - Implementation of hook_menu().
File
- ./
oauth_common.admin.inc, line 138
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(check_plain($context->title));
}
return drupal_get_form('oauth_common_edit_form_context', $context);
}