Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Event
before create new user account
condition
User created by uLogin
action
set a data value..
but in action, i can't found any field related to ulogin!
Comments
Comment #1
duozerskAlex,
uLogin provides user tokens, not fields. Please see #1472704: Use token to prepopulate profile fields for guidance. It is a bit outdated as now we have the "User created by uLogin" condition, but you should get the idea.
Thanks
AndyB
Comment #2
dgastudio CreditAttribution: dgastudio commentedyes, i have read #1472704: Use token to prepopulate profile fields.
but as i say, i can't found any reference to ulogin.
The new value to set for the specified data.
in direct input mode, i only have found: [account:ulogin], nothing more (age, name, surname, etc)
in data select mode, there are no any reference to ulogin.
of course, i always can use php validator, but..
thank you.
Comment #3
duozerskWell... just use it ([account:ulogin:first_name], etc.), there are some glitches in the token browser so it doesn't show the deeper level. To get the key names see any user created by uLogin -> uLogin identitites tab - there you should see a table of available tokens (if you have "administer users" permission).
AndyB
Comment #4
duozerskClosing this one. Please reopen if anything else is needed here.
AndyB
Comment #5
dgastudio CreditAttribution: dgastudio commentedsorry, but no.
my rule
and my user_load array after SAVE ACCOUNT:
as you can see, empty tokens are stored as field_user_name_surname value.
Comment #6
duozerskJust tested this rule - it works:
Can you import it and see if it works on your site? If yes then you can start adding more events and actions...
Side note: with this rule set to act on "user_presave" event the user won't be able to edit the set field - it will always be overwritten by this rule. If this is the desired behavior - then all is fine.
Thanks
AndyB
Comment #7
duozerskOK, since no feedback - closing it once again. Please reopen if needed.
Comment #8
roma4ke CreditAttribution: roma4ke commentedHelp please , trying to load Photo to Profile2 image field. Don't have account: ulogin
Comment #9
roma4ke CreditAttribution: roma4ke commentedHow to load image from uLogin to profile2 image field ?
Comment #10
chimir CreditAttribution: chimir commentedПодскажите, как заполнить поля созданные с помощью field collection
Приведенный выше правило, работает, если поле создано в профиле пользователя, но если поле создано в field collection, то оно не заполняется скриншот
Comment #11
duozerskchimir,
С field collection-ами есть всякие сложности при работе с ними через рулзы, точно не для этого модуля (ulogin) задачка.
И завязывайте постить в закрытые и решённые вопросы со своими ишьюсами - заводите новые.
AndyB
Comment #12
chimir CreditAttribution: chimir commentedСпасибо за ответ
извиняюсь, думал наоборот, не стоит плодить новые вопросы, буду знать