You are here

function oauth_common_form_authorization_secret_ajax_callback in OAuth 1.0 7.4

Same name and namespace in other branches
  1. 7.3 oauth_common.authorizations.inc \oauth_common_form_authorization_secret_ajax_callback()

AJAX callback for showing secrets

Return value

void

1 string reference to 'oauth_common_form_authorization_secret_ajax_callback'
oauth_common_form_authorization in ./oauth_common.authorizations.inc
Provide a form to edit and add authorizations.

File

./oauth_common.authorizations.inc, line 177
Functions related to a user's authorization section

Code

function oauth_common_form_authorization_secret_ajax_callback($form, $form_state) {
  $form['secret']['#markup'] = $form_state['values']['token_object']->secret;
  $form['secret']['#prefix'] = '';
  return $form['secret'];
}