function ad_html_uninstall in Advertisement 6.3
Same name and namespace in other branches
- 5.2 html/ad_html.install \ad_html_uninstall()
- 5 html/ad_html.install \ad_html_uninstall()
- 6 html/ad_html.install \ad_html_uninstall()
- 6.2 html/ad_html.install \ad_html_uninstall()
- 7 html/ad_html.install \ad_html_uninstall()
Allow complete uninstallation of the ad_html module.
File
- html/
ad_html.install, line 44 - 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 = db_result($result)) {
node_delete($aid);
}
// Remove tables.
drupal_uninstall_schema('ad_html');
}