You are here

function ad_html_uninstall in Advertisement 7

Same name and namespace in other branches
  1. 5.2 html/ad_html.install \ad_html_uninstall()
  2. 5 html/ad_html.install \ad_html_uninstall()
  3. 6.3 html/ad_html.install \ad_html_uninstall()
  4. 6 html/ad_html.install \ad_html_uninstall()
  5. 6.2 html/ad_html.install \ad_html_uninstall()

Implements hook_uninstall().

Allow complete uninstallation of the ad_html module.

File

html/ad_html.install, line 39
Ad_html module database schema.

Code

function ad_html_uninstall() {

  // Delete all ad_html content.
  $result = db_query("SELECT aid FROM {ad_html}");
  while ($aid = $result
    ->fetchField()) {
    node_delete($aid);
  }
}