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
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

xlsg - June 29, 2009 - 01:30

#2

robmilne - July 20, 2009 - 21:59
Status:active» by design

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

robmilne - July 20, 2009 - 22:00
Status:by design» fixed

#4

System Message - August 3, 2009 - 22:10
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.