You are here

function revenue_sharing_basic_uninstall in Google AdSense integration 7

Same name and namespace in other branches
  1. 5.3 old/revenue_sharing_basic/revenue_sharing_basic.install \revenue_sharing_basic_uninstall()
  2. 5.2 revenue_sharing_basic.install \revenue_sharing_basic_uninstall()
  3. 6 old/revenue_sharing_basic/revenue_sharing_basic.install \revenue_sharing_basic_uninstall()

Implements hook_uninstall().

File

old/revenue_sharing_basic/revenue_sharing_basic.install, line 33
Install file of the revenue_sharing_basic module.

Code

function revenue_sharing_basic_uninstall() {
  variable_del('revenue_sharing_basic_client_id_profile_field');
  variable_del('revenue_sharing_basic_percentage_author');
  variable_del('revenue_sharing_basic_percentage_refer');
  variable_del('revenue_sharing_basic_revenue_enable');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'revenue\\_sharing\\_basic\\_percentage\\_role\\_%'");
  foreach ($settings as $variable) {
    variable_del($variable->name);
  }
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'revenue\\_sharing\\_basic\\_node\\_type\\_%'");
  foreach ($settings as $variable) {
    variable_del($variable->name);
  }
}