3
votes

I'm using Drupal 7.26 and i created a new content type.

I want to add a field that has a Default value where I can add PHP code. Normally, the Default value shows only plain text.

I have been activating "php filter module" and "cck module" for drupal 7.
But I cannot find the PHP code!!

How do I find this Item? Thank you.

1

1 Answers

2
votes

You're looking at it differently.
PHP filter module will provide a text filter in which you would be able to enter php code. However, the field type in which you add the php code needs to be "Large text" or "Large text with summary". In the field settings you have to enable the PHP filter, then you should be able to enter PHP.