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

Dadaisme’s picture

I'm using php 5.3

No one have an idea?

Dadaisme’s picture

Category: Bug report » Support request
Status: Active » Closed (fixed)

My stupidity... !!

namwebs’s picture

Please explain what you did.... I have the same stupidity and can't get it to work!

Zheko’s picture

Same issue.
I've tried this php code:

global $user;
return $user->uid;

And looks like $user global variable is not available.

Dadaisme’s picture

The code for the default value is not parsed if there is already a value in the session/cookies for the user.