Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi!
The default through PHP code does not work in 7.x.1.12 and 7.x-1.dev?
I have tried a few things to get my defaults values whitout any sucess... then, I have tried to put a drupal message and finaly faulty php code like <?php .sdfkjg54bnd.;sj ?>
: it is not even parsed, no error resulted??
PHP filter is enable!
Can this be linked to php version? What is the minimum version?
Thx
Comments
Comment #1
Dadaisme CreditAttribution: Dadaisme commentedI'm using php 5.3
No one have an idea?
Comment #2
Dadaisme CreditAttribution: Dadaisme commentedMy stupidity... !!
Comment #3
namwebs CreditAttribution: namwebs commentedPlease explain what you did.... I have the same stupidity and can't get it to work!
Comment #4
Zheko CreditAttribution: Zheko commentedSame issue.
I've tried this php code:
And looks like $user global variable is not available.
Comment #5
Dadaisme CreditAttribution: Dadaisme commentedThe code for the default value is not parsed if there is already a value in the session/cookies for the user.