Hi!
I'm trying to set node title based on amazon title from asin module (using token), but it did not work. It just set 'ant' as a title. After investigation, i found out that in hook_nodeapi $op=validate never called. But for other node types it is called ok. My node type is Product, created via ubercart.
Drupal: 5.7
Automatic Nodetitles: 5.x-1.1
I can provide more information on your request if you need.
Thanks!
Comments
Comment #1
buddaI'm seeing the same problem with a CCK type.
I'm using drupal_execute() to create multiple nodes, but the title remains 'ant'. The validate operation does get called, the first time.
Comment #2
buddaHere is the reason for the 'ant' problem. http://drupal.org/node/148530
Bad news is there's no fix.
Maybe setting the node title in the validation hook is a bad idea?
Comment #3
fagoIt's the only way to get the preview working. You can invoke autonode title manually by calling auto_nodetitle_set_title($node) before running drupal_execute.
@cyberpunk: When validate isn't called, it's not auto nodetitles fault. Perhaps you are experiencing the same bug as budda?
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.