Closed (fixed)
Project:
Drupal core
Version:
6.20
Component:
php.module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Feb 2011 at 04:21 UTC
Updated:
12 Aug 2013 at 15:48 UTC
Not sure if this is the right issue forum.
I added a new field to the page content type. The default input format was PHP code so I could add an include statement to some pages.
Unfortunately while fooling around with settings I must have changed the input format to plain text or something. The result was that I lost the php statements in the pages. This cost me a couple of hour's work.
It would have been great if there had been a warning statement saying something like Changing Format Will Zap Your Code!!!
Thanks
Comments
Comment #1
vkareh commentedChanging your input format does not change the contents of the node. Your code just doesn't get evaluated. Try editing the node and see if your code is still there.
In any case, embedding PHP code within a node is not necessarily a good practice; you might want to try building a custom module: http://drupal.org/node/231276
Comment #2
jkingsnorth commentedClosing old support issue which has a suggested fix, please re-open it's still a problem.