I am writing custom Rules action which is supposed to create new instance of a field in database. Action triggered on "new account saved"

I need the field to be labelled as the name of just created account.

Tried to use $account->name but the $account variable seems to be empty...

How can I get that name into the action???

Any help would be greately appreciated...

Thanks :)

Comments

TR’s picture

Status: Active » Fixed
Issue tags: -drupal_variable custom_rules_action

You need to define account as a context parameter for your action. See rules_user_action_info() in modules/user.rules.inc for some examples.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.