You are here

function nopremium_uninstall in Node Option Premium 7

Same name and namespace in other branches
  1. 8 nopremium.install \nopremium_uninstall()
  2. 6 nopremium.install \nopremium_uninstall()

Implementation of hook_uninstall().

File

./nopremium.install, line 51
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_uninstall() {
  db_drop_index('node', 'node_premium_status');
  db_drop_field('node', 'premium');
  db_query("DELETE FROM {variable} WHERE name LIKE 'nopremium_%%'");
}