It is very practical to have possibility to use PHP code instead of just command.
So there should be one text area for custom PHP code and if it will be filled it will be used instead of command.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | mm_custom_command-555936-run-php-code_2.patch | 6.2 KB | 3dloco |
| #2 | mm_custom_command-555936-run-php-code.patch | 6.2 KB | anantagati |
Comments
Comment #1
anantagati commentedComment #2
anantagati commentedAttached is a patch which creates new actions to run PHP code.
Comment #3
3dloco commentedThanks Anantagati!
Your path now creates #440042: PHP Warning call-time pass-by-reference, so to use it I just removed the '&' from #2, and reattached the file below.
Regards,
KH
Comment #4
anantagati commentedThanks, I will check it when I'll be back from holidays.
Comment #5
marcin-mark commentedThank you very much for the patch.
I was wondering if there was a way I could use custom command using php to update a separate cck field of a newly created node? My goal is to setup different mm configs that harvest from different local server files, process them, save them to a cck file of a new node - but then, tag the node so it knew the file it was harvested from.
Any ideas?
Comment #6
anantagati commentedIt is possible as you are not limited what PHP code will you use. Try forum or IRC support channel for help with code how to tag node as it is out of scope of this module.
Comment #7
anantagati commentedCommited.
Comment #8
anantagati commented