[contributions:vauxia] /modules/qb/modules/qbwc qbwc.inc qbwc.info qbwc.module
User: vauxia Branch: HEAD Date: Tue, 20 Jan 2009 04:05:14 +0000 Modified files: /modules/qb/modules/qbwc qbwc.inc qbwc.info qbwc.module Log message: IMPORTANT: Removing hook_qbwc_authenticate. It was a little silly, because your module has to do a bunch of work to decide whether or not to return TRUE on this function (which indicates that you want to make requests) And then, your module is subsequently called upon to do a similar amount of work to actually make these requests. Instead, the presence of requests found in the hook_qbwc_request() invocation is used to determine whether the session should continue. This probably won't break anything, but any qbwc_authenticate code is unused and should be removed. Other changes: - Added qbwc_set() and qbwc_get() functions, which are wrappers for information that is stored in the session. You should use these to stash your goods rather than interacting with $_SESSION directly. - Added qbwc_request_queue() API function. It is automatically populated with the values from the initial call to hook_request. You can store subsequent requests by calling qbwc_request_queue($request), and it will get called on the next passthru. - Things are most likely re-broken. You can thank me later for that. Links: http://cvs.drupal.org/diff.php?path=contributions/modules/qb/modules/qbwc/qb... http://cvs.drupal.org/diff.php?path=contributions/modules/qb/modules/qbwc/qb... http://cvs.drupal.org/diff.php?path=contributions/modules/qb/modules/qbwc/qb...
participants (1)
-
drupal-cvs@drupal.org