When I try to disable the module, drush states the module cannot be disabled because field is in use.
However, I didn't create any node from type 'easychart'.
I had to manually delete all records from easychart in tables field_config, field_config_instantes, node_type before being able to disable the module.

Comments

thomas_rz’s picture

That's an issue we'll fix in the upcoming release which we've postponed to september of this year due to some release blockers. We'll keep you posted.

thomas_rz’s picture

Assigned: Unassigned » thomas_rz
thomas_rz’s picture

Assigned: thomas_rz » jyve
jyve’s picture

Status: Active » Closed (works as designed)

I have looked further into this, and unfortunately this is a Drupal specific issue. On install we create a custom content type with a custom field in it. Drupal requires for that that field to be removed before the module can be disabled, even if that field is empty.
It is possible to disable the module in a clean way, but you will have take some manual steps:

  • Go to the module page
  • You will see this line under the Easy Chart module: 'Required by: Drupal (Field type(s) in use - see Field list)'. Click on 'Field list'
  • Click on 'Chart' next to 'easychart'
  • Delete the 'Chart' field and confirm
  • Run cron
  • You are now able to remove the module!