You are here

function hook_bakery_transmit in Bakery Single Sign-On System 7.2

Same name and namespace in other branches
  1. 6.2 bakery.api.php \hook_bakery_transmit()
  2. 7.4 bakery.api.php \hook_bakery_transmit()

Bakery data transmit hook invoked before data is sent to another site.

Invoked on master during user_save before syncing to subsites. Also invoked on subsite when requesting account data from master for account creation.

Parameters

array $edit: The array of form values submitted by the user from hook_user_presave().

object $account: User account object.

string $category: The active category of user information being edited.

Return value

array Keyed array of data to pass along to other sites.

2 invocations of hook_bakery_transmit()
bakery_eat_gingerbread_cookie in ./bakery.module
Respond with account information.
bakery_user_presave in ./bakery.module
Implements hook_user_presave().

File

./bakery.api.php, line 32
This file contains no working PHP code; it exists to provide additional documentation for doxygen as well as to document hooks in the standard Drupal manner.

Code

function hook_bakery_transmit($edit, $account, $category) {
  return array(
    'example_field' => 'example_value',
  );
}