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.
Hi,
We have a little problem with our imported default configurations, maybe you can take a look at #332087: Interchanged Links in Workflow Rules Configuration
here the code (generated from w_ng export function):
array (
'#type' => 'configuration',
'#altered' => false,
'#event' => 'buddy_add_request',
'#label' => '[MAIL] UserA requests to add UserB',
'#active' => 1,
'#module' => 'buddy-api',
0 =>
array (
'#type' => 'action',
'#name' => 'workflow_ng_action_mail_to_user',
'#settings' =>
array (
'from' => '[userA:site-mail]',
'from_args' =>
array (
0 => 'userA',
),
'subject' => '[userB:site-name]: [userA:user] has requested to add you to his/her buddylist',
'subject_args' =>
array (
0 => 'userA',
1 => 'userB',
),
'message' => 'Hi [userB:user],
[userA:user] has requested to add you to his/her buddylist.
His message:
*************
[buddyinfo:message]
*************
Here\'s a link to [userA:user]\'s profile:
[userA:site-url]/index.php?q=user/[userA:uid]
To approve/deny this request, log in to [userB:site-url] and see your pending buddy requests.
Enjoy your new freedom!
Regards,
The [userA:site-name] team',
'message_args' =>
array (
0 => 'userA',
1 => 'userB',
2 => 'buddyinfo',
),
),
'#label' => 'Send a mail to a user',
'#argument map' =>
array (
'userB' => 'user',
),
),
1 =>
array (
'#type' => 'action',
'#name' => 'workflow_ng_action_watchdog',
'#settings' =>
array (
'severity' => '0',
'type' => 'workflow-ng',
'message' => 'BUDDYLIST MAIL: [userA:user] ([userA:uid]): [buddyinfo:notification] ([userB:uid])',
'message_args' =>
array (
0 => 'userA',
1 => 'userB',
2 => 'buddyinfo',
),
'link' => '',
'link_args' =>
array (
),
),
'#label' => 'Log to watchdog',
),
'#name' => 'buddy_api_request_mail',
),
regards
dominik