How to disable the Submit button on a the delete page form? I made a form_alter and trying to disable the submit button by greying it out by using the #disabled option on the form api. I know i can just do a unset() on the submit button, but was wondering how to use the #disabled. I tried the following:

$form['actions']['submit']['#disabled'] = TRUE;

But that doesn't do anything it seems. Here' my krumo output:
Yes, you are understanding the behavior of the '#disabled' key correctly. I tried the code you describe and it "just worked."

function custom_form_node_delete_confirm_alter(&amp;$form, $form_state) {

  dsm($form['actions']['submit']);
  $form['actions']['submit']['#disabled'] = TRUE;
  dsm($form['actions']['submit']);
}




My guess as to why the alteration is not creating the desired end result is that your function signature is not using the "&amp;" with the $form variable. That character is needed for the $form variable to be "passed by reference" which allows for the changes to the variable to stick outside the function.