Greetings,

You have the following piece of code in nodeprofile_form_alter() function:

if (module_exists('usernode') && is_nodeprofile($form['#node_type']->type)) {
$form['workflow']['nodefamily_max']['#disabled'] = TRUE;
}

Unfortunatly, it doesn't work untill nodefamily.module has lower weight than nodeprofile.module (there is no $form['workflow']['nodefamily_max'] element in the form model). Since, nodeprofile.module requires to be called before user.module you set its weight to -1.

After I set nodeprfofile.module's weight to -2 everything started to work. I'm not sure is it breaking something ... but nodefamily_max was disabled as it is was supposed.

You probably need to force nodefamily.module's weight to be lower than nodeprofile if it is installed or is it not your task?

Thanks.

Comments

fago’s picture

Status: Active » Fixed

thanks, I've fixed this by changes nodefamily's weight to -2

dries’s picture

Status: Fixed » Closed (fixed)