You are here

function _bakery_init_field in Bakery Single Sign-On System 6.2

Same name and namespace in other branches
  1. 7.4 bakery.module \_bakery_init_field()
  2. 7.2 bakery.module \_bakery_init_field()
  3. 7.3 bakery.module \_bakery_init_field()

Build internal init url (without scheme).

7 calls to _bakery_init_field()
bakery_eat_stroopwafel_cookie in ./bakery.module
Menu callback, invoked on the slave
bakery_login in ./bakery.module
Special Bakery login callback authenticates the user and returns to slave.
bakery_register in ./bakery.module
Special Bakery register callback registers the user and returns to slave.
bakery_register_return in ./bakery.module
Custom return for slave registration process.
bakery_request_account in ./bakery.module
Request account information from master to create account locally.

... See full list

File

./bakery.module, line 1506

Code

function _bakery_init_field($uid) {
  $url = variable_get('bakery_master', 'http://drupal.org/');
  $scheme = parse_url($url, PHP_URL_SCHEME);
  return str_replace($scheme . '://', '', $url) . 'user/' . $uid . '/edit';
}