function disable_field_update_8001 in Disable Field 8
Same name and namespace in other branches
- 8.2 disable_field.install \disable_field_update_8001()
 
Deletes useless table disable_field. Now settings of the module will be stored in fields entities.
File
- ./
disable_field.install, line 12  - Install and uninstall functions for the Disable Textfield module.
 
Code
function disable_field_update_8001() {
  $schema = \Drupal\Core\Database\Database::getConnection()
    ->schema();
  $schema
    ->dropTable('disable_field');
}