function ad_image_uninstall in Advertisement 6.2
Same name and namespace in other branches
- 5.2 image/ad_image.install \ad_image_uninstall()
- 5 image/ad_image.install \ad_image_uninstall()
- 6.3 image/ad_image.install \ad_image_uninstall()
- 6 image/ad_image.install \ad_image_uninstall()
- 7 image/ad_image.install \ad_image_uninstall()
Allow complete uninstallation of the ad_image module.
File
- image/
ad_image.install, line 121 - Ad_image module database schema.
Code
function ad_image_uninstall() {
// Delete all ad_image content.
$result = db_query("SELECT aid FROM {ad_image}");
while ($aid = db_result($result)) {
node_delete($aid);
}
// Remove tables.
drupal_uninstall_schema('ad_image');
}