Hi Drupalers,
I've got my form setup for modifying a user profile such that all the information that is driven by the profile module is showing up under the default secondary local task. ie: the user does not have to click on the sub links when editing their info...from http://foobar/user/12/edit.
My problem is that I can't seem to get the information back into the database...I've used hook_form_alter on the 'user_edit' form_id to modify the form. I'm able to get all the default_values into each field. I'm then tried using hook_user to simulate the action that takes place when the user hits 'save my settings'
Can anyone provide any help?? Here is my hook_user function. I've added the drupal_set_message function and what is odd is that when I attempt to save my settings the only output I get is "For 12, a load operation was invoked.
For , a categories operation was invoked.
For 12, a load operation was invoked.
For 12, a form operation was invoked.
For , a validate operation was invoked. "
is this expected???
function mymodule_user($type, &$edit, &$user, $category = NULL) {
// print "$type";
drupal_set_message("For $user->uid, a $type operation was invoked.");
switch ($type) {
case 'update':
case 'insert':
printArray($edit);
return profile_save_profile($edit, $user, $category);
break;
case 'validate':