function og_uninstall in Organic groups 5
Same name and namespace in other branches
- 8 og.install \og_uninstall()
- 5.8 og.install \og_uninstall()
- 5.3 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 527
Code
function og_uninstall() {
// Drop database table
db_query('DROP TABLE {og}');
db_query('DROP TABLE {og_uid}');
db_query('DROP TABLE {og_uid_global}');
db_query('DROP TABLE {og_ancestry}');
// 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_omitted_email_node_types',
'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_notification',
'og_request_user_body',
'og_request_user_subject',
);
foreach ($variables as $variable) {
variable_del($variable);
}
}