Closed (outdated)
Project:
Rules
Version:
7.x-2.2
Component:
Rules Core
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
31 Mar 2012 at 12:31 UTC
Updated:
6 Sep 2025 at 18:09 UTC
Jump to comment: Most recent
Comments
Comment #1
mitchell commentedUpdated component.
Comment #2
Balbo commentedHow to do that? Any hint?
Comment #3
Chipie commentedHave you found a solution?
Comment #4
CmKeen commentedNo, not really.
I found a way using PHP but not directly with rules.
Comment #5
Chipie commentedHow did you do it?
Comment #6
CmKeen commented6 month later and I don't remember how I did it in the first place.
I should certainly have documented here.
Anyone knows how to do it?
Comment #7
CmKeen commentedHere is the use case.
I have 2 content types called list and restaurant
A list has an multiple entity reference field referencing restaurants
On the list node, I display a views block which is a VBO listing all the restaurants of the list.
When I select some restaurants, I want the VBO to trigger a rule which will remove the selected restaurants from the list.
My issue is that I don't manage to pass the list I'm currently viewing to the rules component.
I tried a bit with php evaluation by looking at the path and returning arg(1) but the path is the one from the batch and not the node/XXX path.
I'm stuck. Any idea is welcome
Comment #8
Slacker commentedI have very similar problem, any solution?
Comment #9
avpadernoI am closing this issue, which was created for a project version compatible with a Drupal release no longer supported. Feel free to re-open the issue, if it is still relevant for a project version compatible with a supported Drupal release.