Give the gift of Drupal. All merchandise is 50% off through 2016.
I'm trying to create a 'Set data value' action. I'd like to achieve this:
%node:field_datestamp_1['value'] + %node:field_integer['value'] = %node:field_datestamp_2['value']
These are my rule's settings:
- Data to be modified:
- New value to set for the specified data:
node:field-datestamp-1(I assume this is now the $value variable in the PHP Eval.)
- PHP Eval:
$addtime = %node:field_integer['value']; return $value + $addtime;
node:field_integer is for example set to 100000 in the node form, the rule doesn't work. Apparently, the PHP isn't evaluated. However, when I change the code to
$addtime = 100000, it works fine.
How can I access the variable in the PHP data processor correctly? Please provide a fix for this!