You are here

function sharebar_uninstall in ShareBar 7

Same name and namespace in other branches
  1. 6 sharebar.install \sharebar_uninstall()
  2. 7.2 sharebar.install \sharebar_uninstall()

Implements hook_uninstall().

File

./sharebar.install, line 11
Requirements, install, uninstall functions for sharebar module.

Code

function sharebar_uninstall() {

  // Delete our module's variable from the variables table.
  variable_del('sharebar_buttons');
  variable_del('sharebar_bar_pages_enabled');
  variable_del('sharebar_bar_horizontal');
  variable_del('sharebar_bar_oncontent');
  variable_del('sharebar_bar_credit');
  variable_del('sharebar_bar_toptoffset');
  variable_del('sharebar_bar_position');
  variable_del('sharebar_bar_leftoffset');
  variable_del('sharebar_bar_rightoffset');
  variable_del('sharebar_bar_width');
  variable_del('sharebar_bar_swidth');
  variable_del('sharebar_bar_id');
  variable_del('sharebar_bar_idcontent');
  variable_del('sharebar_bar_idhorizontal');
  variable_del('sharebar_bar_onblock');
  variable_del('sharebar_bar_twitter_username');
  variable_del('sharebar_bar_background');
  variable_del('sharebar_bar_border');
  $node_types = node_type_get_types();
  $node_names = node_type_get_names();
  if (is_array($node_names) && count($node_names)) {
    foreach ($node_names as $key => $value) {
      variable_del('sharebar_bar_posts_' . $node_types[$key]->type . '_enabled');
    }
  }
}