Sky Blue Sofa Blog Concrete5 User Events Cheat-Sheet - Sky Blue Sofa Blog

Concrete5 User Events Cheat-Sheet

Posted by Dave Rogers // March 26, 2013 // in Blog // 0 Comments

Rifle Trigger

From time to time as I'm doing some programming, I'll run across something that I think other's might find useful. Today as I was programming a user import script for a concrete5 project, I was trying to figure out what events I could hook into. Here's a list of user events that are available in concrete5.6.

User Events

on_user_add

Fires when a user is added to the system.

Arguments: $userInfo, $password

on_user_delete

Fires when a user is to be removed from the system. 

Arguments: $userInfo

Return: If false is returned, the user is NOT deleted.

on_user_update

Fires when a user's information is updated.

Arguments: $userInfo

on_user_activate

Fires when a user is set to active status.

Arguments: $userInfo

on_user_deactivate

Fires when a user is set to inactive status.

Arguments: $userInfo

on_user_login

Is fired when a user logs in using the /login page. It is not triggered programatically.

Arguments: $userInfo

on_user_logout

Fired when a user logs out of the CMS. 

Arguments: none

on_user_enter_group

Fired when a user is added to a group.

Arguments: $userInfo, $group

on_user_exit_group

Fired when a user is removed from a group.

Arguments: $userInfo, $group

on_user_change_password

Fires when a user's password is updated.

Arguments: $userInfo, $password

on_user_friend_add

Fires when adding a friend to a user's profile.

Arguments: $uID, $friendUID

on_user_friend_remove

Fires when removing a friend from a user's profile.

Arguments: $uID, $friendUID

About the Author

Dave Rogers

Dave is the founder of Sky Blue Sofa Web Design. He enjoys working out, spending time with his wife and dogs and programming. He grew up and currently resides in the Illinois Quad Cities. You can find his personal blog at strength/reliance.com.

View Profile »

Comments

You must be logged in to leave a reply. Login »