You are here

function fasttoggle_field_uninstall in Fasttoggle 7

Implements hook_uninstall().

File

module/fasttoggle_field/fasttoggle_field.install, line 11
The installation file for fasttoggle_field.module.

Code

function fasttoggle_field_uninstall() {
  foreach (field_info_instances() as $entity_type => $instance_array) {
    foreach ($instance_array as $group => $instances) {
      foreach ($instances as $fieldname => $field_settings) {
        variable_del("fasttoggle_{$entity_type}_{$group}_settings");
      }
    }
  }
}