Confirm module uninstall I have written a module that creates a node type and I want to put in a warning on uninstall that lets the user know that the nodes created under that node type will be deleted if they continue to uninstall the module.

Now someone suggested that I use the confirm_form function. But I don't see how this would work or even apply in this case since it has to integrate with the hook_uninstall function for the module.

Any thoughts on this? Thanks!

EDIT: This module is written in Drupal 6 with a Drupal 7 version coming once this one has been approved by the Drupal community (my first community posted module, so I am not yet sure how to create the separate version branches yet).
In Drupal 6 you can alter the system modules uninstall form.   

function MYMODULE_form_system_modules_uninstall_alter(&amp;$form, &amp;$form_state) {
  if (isset($form['modules']['MYMODULE'])) {
    //alter form how you would like
  }
}


The only change for Drupal 7 is there is an additional function argument 

6       hook_form_FORM_ID_alter(&amp;$form, &amp;$form_state)
7 – 8   hook_form_FORM_ID_alter(&amp;$form, &amp;$form_state, $form_id)


NOTE: This form gets call on the /admin/module/uninstall &amp; /admin/module/uninstall/confirm.   If you just want it on one then add an additional case to the if statment, checking the path.