You are here

function _patchinfo_clear_db in PatchInfo 7

Same name and namespace in other branches
  1. 8.2 patchinfo.module \_patchinfo_clear_db()
  2. 8 patchinfo.module \_patchinfo_clear_db()

Remove all patch information for a module from DB.

Parameters

string $module: Machine readable module name.

1 call to _patchinfo_clear_db()
patchinfo_system_info_alter in ./patchinfo.module
Implements hook_system_info_alter().

File

./patchinfo.module, line 127
Patch Info primary module file.

Code

function _patchinfo_clear_db($module) {
  if (!empty($module)) {
    db_delete('patchinfo')
      ->condition('module', $module)
      ->execute();
  }
}