could u please explain me what does this function will do and how this function process
'return trigger_plugin_hook('registeruser:validate:username', 'all', array('username' => $username), $result);'
where this is define 'registeruser:validate:username'
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- scvinodkumar@scvinodkumar

scvinodkumar - 0 likes
- Kevin Jardine@kevin

Kevin Jardine - 0 likes
- scvinodkumar@scvinodkumar

scvinodkumar - 0 likes
- Leslie@tbphx

Leslie - 0 likes
- scvinodkumar@scvinodkumar

scvinodkumar - 0 likes
You must log in to post replies.This passes the array information to any plugin hooks registered to listen to the 'registeruser:validate:username' hook.
Unlike event triggers, plugin hooks actually pass the content and their results from hook function to hook function so that they can return results (and not just a true or false).
thanks kevin. Actually, i have added one more field in the user_entity table and i need to validate this field similar to username.
could you please tell me how to do this?
Yike - you modified a core Elgg table? Does not sound like a good idea to me. You should not need to add or change any Elgg tables.
I am just adding only one field in the user table and this field is required for my project.
so could you please tell me how to validate this field or how the 'trigger_plugin_hook' function works.
I think that if you need to add one more field to the user table, you should be adding it via a piece of metadata or an annotation that is linked to the user entity. You shouldn't be modifying the user table.
thanks kevin and leslie.