You are here

function oauth_common_add_consumer in OAuth 1.0 6.3

Same name and namespace in other branches
  1. 7.4 oauth_common.consumers.inc \oauth_common_add_consumer()
  2. 7.3 oauth_common.consumers.inc \oauth_common_add_consumer()

Menu system callback for the add consumer page.

1 string reference to 'oauth_common_add_consumer'
oauth_common_providerui_menu in ./oauth_common_providerui.module
Implementation of hook_menu().

File

./oauth_common.consumers.inc, line 67

Code

function oauth_common_add_consumer($account) {
  $consumer = new DrupalOAuthConsumer(user_password(32), user_password(32), array(
    'callback_url' => '',
    'uid' => $account->uid,
    'provider_consumer' => TRUE,
  ));
  return drupal_get_form('oauth_common_form_consumer', $consumer);
}