I have a content type thats holds a file and some metadata belonging to it. on 'content auto label' i am offered the [node:field_fieldname]-token.
in this code it returns the uri:

$field_file = token_replace('[node:field_file]');

return $field_file;

in this code it returns a empty string:

$field_file = token_replace('[node:field_file]');

return $field_file;

function test() {
    
}

this behaviour is repoducible: always
affected versions: 7.x-1.2 and 7.x-1.x-dev

Comments

Anonymous’s picture

Issue summary: View changes