You are here

function download_count_uninstall in Download Count 7.2

Same name and namespace in other branches
  1. 8 download_count.install \download_count_uninstall()
  2. 5 download_count.install \download_count_uninstall()
  3. 6.2 download_count.install \download_count_uninstall()
  4. 6 download_count.install \download_count_uninstall()
  5. 7.3 download_count.install \download_count_uninstall()

Implements hook_uninstall().

File

./download_count.install, line 84
Installation code for the download_count module.

Code

function download_count_uninstall() {

  // TODO The drupal_(un)install_schema functions are called automatically in D7.
  // drupal_uninstall_schema('download_count')
  // TODO Please review the conversion of this statement to the D7 database API syntax.

  /* db_query("DELETE FROM {variable} WHERE name LIKE 'download_count_%'") */
  db_delete('variable')
    ->condition('name', 'download_count_%', 'LIKE')
    ->execute();
}