function revenue_sharing_basic_uninstall in Google AdSense integration 5.3
Same name and namespace in other branches
- 5.2 revenue_sharing_basic.install \revenue_sharing_basic_uninstall()
- 6 old/revenue_sharing_basic/revenue_sharing_basic.install \revenue_sharing_basic_uninstall()
- 7 old/revenue_sharing_basic/revenue_sharing_basic.install \revenue_sharing_basic_uninstall()
Implementation of hook_uninstall().
File
- old/
revenue_sharing_basic/ revenue_sharing_basic.install, line 11 - 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\\_%'");
while ($variable = db_fetch_object($settings)) {
variable_del($variable->name);
}
$settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'revenue\\_sharing\\_basic\\_node\\_type\\_%'");
while ($variable = db_fetch_object($settings)) {
variable_del($variable->name);
}
}