This module doesn't delete records from the permissions_per_webform table when a webform has been deleted. To address this, I:
* Added hook_node_delete to remove any permissions records related to the nid.
* Added hook_update_N to remove existing data that no longer has a webform of that nid (been deleted, etc.) - along with a little messaging.
* Added hook_uninstall to remove the DB table manually (assuming hook_schema doesn't get it).
Please review and test this patch before applying anywhere important!
| Comment | File | Size | Author |
|---|---|---|---|
| db_table_cleanup_node_delete_hook.patch | 2.48 KB | aubjr_drupal |
Comments
Comment #2
aubjr_drupal commented