I created a rule with the actions "Provide a variable: mynumber" and "Grant points to a user". I'd like to evaluate the points with PHP, using "mynumber". For some reason, I can't use
$mynumber, although that is possible in the PHP evalution of the sections 'Operation' and 'Description'. As the replacement pattern
[mynumber] is available, I tried to use it in my code with and without the square brackets, but in both cases, I get the error:
Notice: Use of undefined constant mynumber - assumed 'mynumber' in eval() (line 1 of C:\wamp\www\mysite\sites\all\modules\rules\modules\php.eval.inc(146) : eval()'d code).
Is this a missing feature, a bug in the Rules module or did I do something wrong?