Skip navigation
Help

field_modules_disabled

7 field.module field_modules_disabled($modules)

Implements hook_modules_disabled().

Related topics

File

drupal/modules/field/field.module, line 401
Attach custom data fields to Drupal entities.

Code

function field_modules_disabled($modules) {
  // Track fields whose field type is being disabled.
  db_update('field_config')
    ->fields(array('active' => 0))
    ->condition('module', $modules, 'IN')
    ->execute();

  // Track fields whose storage backend is being disabled.
  db_update('field_config')
    ->fields(array('storage_active' => 0))
    ->condition('storage_module', $modules, 'IN')
    ->execute();

  field_cache_clear();
}