diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-08-12 12:36:05 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-08-12 12:36:05 +0000 |
commit | 06fbe8e90ce3272b4879dc967b95bd6937875dc8 (patch) | |
tree | 559bc0e8ea44793dab12ecf446ebccb379f40fff /modules/trigger | |
parent | a83e5605c763ddb2995cbec002576f29d75a9402 (diff) | |
download | brdo-06fbe8e90ce3272b4879dc967b95bd6937875dc8.tar.gz brdo-06fbe8e90ce3272b4879dc967b95bd6937875dc8.tar.bz2 |
- Patch #491972 by Berdir, webchick: clean-up of user/profile related hooks and APIs.
Diffstat (limited to 'modules/trigger')
-rw-r--r-- | modules/trigger/trigger.module | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 61c7c6d03..e810755c8 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -416,28 +416,28 @@ function _trigger_normalize_user_context($type, $account) { /** * trigger_user_login */ -function trigger_user_login(&$edit, &$account, $category) { +function trigger_user_login(&$edit, $account, $category) { _trigger_user('login', $edit, $account, $category); } /** * Implement hook_user_logout(). */ -function trigger_user_logout($edit, $account) { - _trigger_user('logout', $edit, $account); +function trigger_user_logout($account) { + _trigger_user('logout', $edit = NULL, $account); } /** * Implement hook_user_insert(). */ -function trigger_user_insert(&$edit, &$account, $category) { +function trigger_user_insert(&$edit, $account, $category) { _trigger_user('insert', $edit, $account, $category); } /** * Implement hook_user_update(). */ -function trigger_user_update(&$edit, &$account, $category) { +function trigger_user_update(&$edit, $account, $category) { _trigger_user('update', $edit, $account, $category); } @@ -456,8 +456,8 @@ function trigger_user_cancel($edit, $account, $method) { /** * Implement hook_user_view(). */ -function trigger_user_view(&$edit, &$account, $category) { - _trigger_user('view', $edit, $account, $category); +function trigger_user_view($account) { + _trigger_user('view', $edit = NULL, $account, NULL); } /** @@ -465,7 +465,7 @@ function trigger_user_view(&$edit, &$account, $category) { * * @TODO: Take advantage of the new API and reorganise/remove this function. */ -function _trigger_user($op, &$edit, &$account, $category = NULL) { +function _trigger_user($op, &$edit, $account, $category = NULL) { // Keep objects for reuse so that changes actions make to objects can persist. static $objects; $aids = _trigger_get_hook_aids('user', $op); |