Closed (works as designed)
Project:
Arrange Fields
Version:
7.x-1.9
Component:
Code
Priority:
Major
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 May 2012 at 04:21 UTC
Updated:
22 May 2012 at 15:13 UTC
how might i modify the module so that it can evaluate PHP in the user defined markup body?
I found $markup_body which I think is the variable that holds it. Am I correct?
Comments
Comment #1
richardp commentedHello,
Yes, I believe that variable is probably the one you want. However, I will say that what you are requesting is outside of the scope of this project. The markup is meant for just that-- markup. If you wish to evaluate PHP code on a particular form, you should use Drupal's method of "hook_form_alter" to achieve that, as there is already a wealth of material out there to help you along.
Good luck,
Richard
Comment #2
TheOldGuy223 commentedJust in case your interested, on line 1320 of the module, I figured out by slightly changing the $markup_body to ".eval($markup_body)." it seemed to do the trick.
Modified Code