You are here

function plus1_uninstall in Plus 1 7

Same name and namespace in other branches
  1. 6.2 plus1.install \plus1_uninstall()
  2. 6 plus1.install \plus1_uninstall()

Implements hook_uninstall().

File

./plus1.install, line 11
Install file

Code

function plus1_uninstall() {
  variable_del('plus1_add_js');
  variable_del('plus1_add_css');
  variable_del('plus1_node_types');
  $entity_info = entity_get_info('node');
  foreach ($entity_info['view modes'] as $vmid => $view_mode) {
    variable_del('plus1_node_in_' . $vmid . '_view');
  }
  variable_del('plus1_node_vote_text');
  variable_del('plus1_node_voted_text');
  variable_del('plus1_node_undo_vote');
  variable_del('plus1_node_undo_vote_text');
  variable_del('plus1_node_widget_weight');
  variable_del('plus1_comment_widget_show');
  variable_del('plus1_comment_vote_text');
  variable_del('plus1_comment_voted_text');
  variable_del('plus1_comment_undo_vote');
  variable_del('plus1_comment_undo_vote_text');
  variable_del('plus1_comment_widget_weight');
  variable_del('plus1_taxonomy_term_widget_show');
  variable_del('plus1_taxonomy_vocabularies');
  variable_del('plus1_taxonomy_term_vote_text');
  variable_del('plus1_taxonomy_term_voted_text');
  variable_del('plus1_taxonomy_term_undo_vote');
  variable_del('plus1_taxonomy_term_undo_vote_text');
  variable_del('plus1_taxonomy_term_widget_weight');
}