You are here

disable_field.install in Disable Field 8

Same filename and directory in other branches
  1. 8.2 disable_field.install
  2. 7 disable_field.install

Install and uninstall functions for the Disable Textfield module.

File

disable_field.install
View source
<?php

/**
 * @file
 * Install and uninstall functions for the Disable Textfield module.
 */

/**
 * Deletes useless table disable_field.
 * Now settings of the module will be stored in fields entities.
 */
function disable_field_update_8001() {
  $schema = \Drupal\Core\Database\Database::getConnection()
    ->schema();
  $schema
    ->dropTable('disable_field');
}

Functions

Namesort descending Description
disable_field_update_8001 Deletes useless table disable_field. Now settings of the module will be stored in fields entities.