function og_uninstall in Organic groups 5.3
Same name and namespace in other branches
- 8 og.install \og_uninstall()
- 5.8 og.install \og_uninstall()
- 5 og.install \og_uninstall()
- 5.7 og.install \og_uninstall()
- 6.2 og.install \og_uninstall()
- 6 og.install \og_uninstall()
- 7.2 og.install \og_uninstall()
- 7 og.install \og_uninstall()
File
- ./
og.install, line 528
Code
function og_uninstall() {
// Drop database table
db_query('DROP TABLE {og}');
db_query('DROP TABLE {og_uid}');
db_query('DROP TABLE {og_ancestry}');
// In case og_notifications has never been enabled, the vestigial
// og_uid_global table will still be around.
if (variable_get('og_notifications_update_required', FALSE)) {
db_query('DROP TABLE {og_uid_global}');
}
// Delete variables
$variables = array(
'og_member_pics',
'og_help',
'og_block_cnt_2',
'og_block_cnt_3',
'og_audience_checkboxes',
'og_omitted',
'og_content_type_usage',
'og_audience_required',
'og_visibility_directory',
'og_visibility_registration',
'og_home_page_view',
'og_email_max',
'og_node_types',
'og_admin_email_body',
'og_email_notification_pattern',
'og_approve_user_body',
'og_approve_user_subject',
'og_deny_user_body',
'og_deny_user_subject',
'og_invite_user_body',
'og_invite_user_subject',
'og_new_admin_body',
'og_new_admin_subject',
'og_new_node_body',
'og_new_node_subject',
'og_request_user_body',
'og_request_user_subject',
'og_notifications_update_required',
'og_notifications_content_types',
);
foreach ($variables as $variable) {
variable_del($variable);
}
}