function ddblock_uninstall in Dynamic display block 7
Same name and namespace in other branches
- 6 ddblock.install \ddblock_uninstall()
Implements hook_uninstall().
File
- ./
ddblock.install, line 68 - Installation file to implement the dynamic display block schema
Code
function ddblock_uninstall() {
//Drop tables
// TODO The drupal_(un)install_schema functions are called automatically in D7.
// DONE these lines can be removed
// drupal_uninstall_schema('ddblock')
// Remove variables
// TODO Please review the conversion of this statement to the D7 database API syntax.
// DONE
/* db_query("DELETE FROM {variable} WHERE name LIKE 'ddblock_%%'") */
db_delete('variable')
->condition('name', 'ddblock_%%', 'LIKE')
->execute();
cache_clear_all('variables', 'cache');
drupal_set_message(t("Dynamic display block module uninstalled successfully."));
}