In a clean Drupal instalation, when I try to register a new user using a special path defined at "Assing from path", I get the next warning:
warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, 'node_form' was given in C:\xampp\htdocs\drupal\includes\form.inc on line 366.
warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\drupal\sites\all\modules\autoassignrole\autoassignrole.module on line 406.
Resulting that ALL content profiles appear at registration forms.
After this, I can continue filling ALL profiles and the "auto assign role" module assign the roles correctly.
I haven't found the problem in the code. Just some notes in autoassignrole.module:
line 403: I think it's never used
line 404: drupal_retrieve_form function should have 2 arguments and, in the code, it has 3.
line 406: $node_form['#field_info'] doesn't exist.
Any idea?
Drupal 6.6
Content 6.x-2.1
Content Profile 6.x-1.x-dev
Auto Assign Role 6.x-1.x-dev
Comments
Comment #1
azuledu commentedI reported the same problem as in this issue:
http://drupal.org/node/321110
Continue discussion there.
Comment #2
kenorb commented