Hello !
I am using a hierarchical select in a modal frame and when I choose a value, I get a "Invalid response from server" error. PHP error : "Warning: call_user_func_array() expects parameter 1 to be a valid callback, function 'node_form' not found or invalid function name in drupal_retrieve_form()"
I found out that it was a known issue in the hierarchical select and that they implemented a way to include files. I added this line in a form_alter :
$form['#parameters'][1]['form_load_files'] = array(drupal_get_path('module', 'node') . '/node.pages.inc');
just adding this line in the form alter worked fine.
Is it the best way to make it work ?
should it always include node.pages.inc ? well, it's only setting a variable, so I think it should be ok.