Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function hook_user_insert(&$edit, $account, $category) {
- $email = $account->email;
- $uid = $account->uid;
- //Query and get all entity_ids from the field_email table where email matches $email
- foreach($nids as $nid){
- //Update node table user id by above $uid for all nids
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement