Closed (fixed)
Project:
Contextual View Modes
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Oct 2013 at 15:01 UTC
Updated:
19 Jun 2015 at 23:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
ravencoder commentedI have also problems uninstalling. Perhaps the author can provide steps on how we can uninstall this module.
Comment #2
frank ralf commentedThe reason is that the module creates a field_cvm_cvm in the field_config table which seems to be active ("1") by default even when the field isn't actually used.
Deactivating that field by changing the value in the active column to "0" lets you disable and uninstall the module.
hth
Frank
Comment #3
frank ralf commentedComment #4
frank ralf commentedI had a little peek under the hood of the module:
The field is created by the function contextual_view_modes_enable() in the .module file and not as usual from the .install file. So it gets created and enabled when enabling the module and never gets deactivated or uninstalled again using the usual Drupal procedures. IMO that's a bug.
Comment #5
sherakama commentedThanks for the updates guys.
I have changed the module so that the field is defined in a sub module. This allows the parent module to uninstall and remove all of the fields and field information. Check out latest development branch for this update.
Comment #6
sherakama commentedComment #7
frank ralf commentedHi Shea,
Thanks, that's much better. Now the parent module indeed uninstalls and removes all of the fields and field information.
The only thing I find a bit awkward is the procedure to uninstall the CVM Field sub module itself:
Perhaps uninstalling the parent module should uninstall the sub module automatically at the same time?
Thanks for this great module!
Frank
Comment #8
frank ralf commentedComment #9
sherakama commentedI will roll this into a new point release if someone can mark it RBTC.
Thanks,
Comment #11
sherakama commented