I've created content profile during registration form and I'm using auto_nodetitle module for auto-generating titles.
Normally when I'm adding content, title generation is working. When I'm creating content using content_profile_registration module, it seems that somehow ignore some defined callbacks (especially that one $form['#submit'][] = 'auto_nodetitle_node_form_submit';)
I don't know what's wrong, but my temporary hard-coded solution was in content_profile_registration_user_register_submit()
change from:
$node = node_submit($node);
node_save($node);
to:
$node = node_submit($node);
auto_nodetitle_set_title($node);
node_save($node);
Any ideas why it is like that?
Comments
Comment #1
kenorb commentedOr rather:
Comment #2
kenorb commentedThe same with the workflow module, where actions are not executed after content has been submitted.
Comment #3
kenorb commentedOk, I found the solution.
I'd workflow set for redirection to another page and node_access_acquire_grants() function wan't executed.
Comment #4
kenorb commentedDifferent solution for redirection method during user registration: http://drupal.org/node/324714#comment-1075458