can anyone tell me how to remove the question " are you sure u want to delete" for certian content, cause its really annoying when you have to confirm every time.


VM’s picture

there is no module nor a snippet nor a setting in the admin ui that will allow you to do what you ask. One would have to be written to bypass the confirmation.

vertazzar’s picture

yea.. that sucks

danielb’s picture

You would use hook_form_node_type_delete_confirm_alter(&$form, &$form_state) and either make it do the operations that are done in node_type_delete_confirm_submit() or somehow use drupal_execute to submit the form...