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.
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
Comment #1
Anonymous (not verified) CreditAttribution: Anonymous commented