After saving or updating a node node_form_submit() calls drupal_set_message(t('@type %title has been updated.', $t_args));. If building the node->title from cck fields with the formatted values that contain an apostrophe, the html encoding 'a is displayed in the message returned to the user.
Comments
Comment #1
dsbrianwebster commentedI was having this same problem when trying to grab the Location Name from the location module as the page title. Whenever there was an apostrophe I would get ' -- ugly.
It seems the problem is Autonode titles with Tokens. Use a PHP replacement pattern instead. For my situation (working with the location name field) the below code worked like a charm.
Be sure "Evaluate PHP in pattern." check box is checked.
Comment #2
tim.plunkettworked for me.
i'd much rather use tokens, but this is a little above my expertise to troubleshoot.
Comment #3
El Bandito commentedHit this one too.
Subscribing.
Comment #4
cerup commentedSame here!
subscribing.
Comment #5
Pierre_G commentedsubscribing
Comment #6
Hardrocker commentedWhere do u put the replacement patterns. I'm stuck with the same problem too.
Comment #7
fagoThe description tells you to use raw values if possible.
Comment #8
scotwith1tReassigned to Location as this module doesn't provide -raw tokens for any fields. There may be good reason for this, maybe related to GMap interaction or something, but anyway, it's not an ANT issue. I couldn't get the php options to work for me either...
Comment #9
drupalina commentedOn my site Node titles are their addresses: "Street, City". In Drupal 6 for AutoNoteTitles I used the following PHP
In D6 it works like a charm!
Now I'm trying to move to D7 and I have no clue about the need code that I need.
Can anybody help, please?
Comment #10
legolasboClosing old D6 issues as D6 is end of life