You are here

function og_uninstall in Organic groups 6

Same name and namespace in other branches
  1. 8 og.install \og_uninstall()
  2. 5.8 og.install \og_uninstall()
  3. 5 og.install \og_uninstall()
  4. 5.3 og.install \og_uninstall()
  5. 5.7 og.install \og_uninstall()
  6. 6.2 og.install \og_uninstall()
  7. 7.2 og.install \og_uninstall()
  8. 7 og.install \og_uninstall()

File

./og.install, line 406

Code

function og_uninstall() {
  drupal_uninstall_schema('og');

  // 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_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);
  }
}