You are here

function oauth_common_add_consumer in OAuth 1.0 7.4

Same name and namespace in other branches
  1. 6.3 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
Implements hook_menu().

File

./oauth_common.consumers.inc, line 71

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);
}