diff options
Diffstat (limited to 'modules/trigger/trigger.module')
-rw-r--r-- | modules/trigger/trigger.module | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/modules/trigger/trigger.module b/modules/trigger/trigger.module index 7c831ebe4..9742509bb 100644 --- a/modules/trigger/trigger.module +++ b/modules/trigger/trigger.module @@ -136,11 +136,14 @@ function trigger_trigger_info() { ), ), 'user' => array( + 'user_presave' => array( + 'label' => t('When either creating a new user account or updating an existing'), + ), 'user_insert' => array( - 'label' => t('After a user account has been created'), + 'label' => t('After creating a new user account'), ), 'user_update' => array( - 'label' => t("After a user's profile has been updated"), + 'label' => t('After updating a user account'), ), 'user_delete' => array( 'label' => t('After a user has been deleted'), @@ -470,6 +473,13 @@ function trigger_user_logout($account) { } /** + * Implement hook_user_presave(). + */ +function trigger_user_presave(&$edit, $account, $category) { + _trigger_user('user_presave', $edit, $account, $category); +} + +/** * Implement hook_user_insert(). */ function trigger_user_insert(&$edit, $account, $category) { |