Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By vertazzar on
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.
Comments
=-=
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.
-_-
yea.. that sucks
You would use
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...