when a content type is deleted, webfm references to the type persist
xlsg - June 29, 2009 - 01:29
| Project: | Web File Manager |
| Version: | 6.x-2.10-rc4 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Create a content type eg. xyz
Delete the content type
The table variables still contains a row where name = "webfm_attach_xyz"
I am no expert, but I think this row should be deleted when the content type is deleted.

#1
#2
OK. Will add this to the next release...
/*** Implementation of hook_node_type().
*/
function webfm_node_type($op, $info) {
switch ($op) {
case 'delete':
variable_del('webfm_attach_'. $info->type);
break;
}
}
#3
#4
Automatically closed -- issue fixed for 2 weeks with no activity.