You are here

sharebar.install in ShareBar 7

Same filename and directory in other branches
  1. 6 sharebar.install
  2. 7.2 sharebar.install

Requirements, install, uninstall functions for sharebar module.

File

sharebar.install
View source
<?php

/**
 * @file
 * Requirements, install, uninstall functions for sharebar module.
 */

/**
 * Implements hook_uninstall().
 */
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');
    }
  }
}

Functions

Namesort descending Description
sharebar_uninstall Implements hook_uninstall().