$token = '[field_testnumber]';
  if (empty($token)) {
    return '[type]';
  }
  else {
    return $token;
  } 

The above code from the README.txt doesn't appear to be having any effect -- the node's title is resaved to "[field_testnumber]". I haven't been able to figure out what it should be in order to create patch for the docs.

Comments

SpaceEater’s picture

Status: Active » Closed (cannot reproduce)

Everything seems to work as mentioned in README. This is my snippet, based on the example from README file.

  $epithet = '[field_epithet-raw]';
  if (empty($epithet)) {
    return '[field_type-raw] [field_adress-raw]';
  }
  else {
    return '[field_epithet-raw] [field_type-raw] [field_adress-raw]';
  }