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

kenorb’s picture

Or rather:

      $node = node_submit($node);
      if (module_exists('auto_nodetitle')) {
	  auto_nodetitle_set_title($node);
      }
      node_save($node);
kenorb’s picture

The same with the workflow module, where actions are not executed after content has been submitted.

kenorb’s picture

Status: Active » Closed (works as designed)

Ok, I found the solution.
I'd workflow set for redirection to another page and node_access_acquire_grants() function wan't executed.

kenorb’s picture

Different solution for redirection method during user registration: http://drupal.org/node/324714#comment-1075458