In drupal 7: I have Answer content type and alter the form for that type:
function mymodule_form_alter(&$form, &$form_state, $form_id) {
if ($form_id == 'answer_node_form') {
// disabling some fields (ie. #access title field to false)
// setting defaults values
// adding one hidden field (that shouldn't be inserted into database)
}
}
A when I'm trying to submit edit form, the process of PHP takes too much time and Apache restarts. Do you have any idea what is wrong? Maybe when I send the form, it shouldn't have any additional fields?
I could paste the code but I think it's insignificant.
$form['title']['#access'] = false;
so it is still sending via POST