You are here

top_buttons.install in Util 7

Same filename and directory in other branches
  1. 6.3 contribs/top_buttons/top_buttons.install

Install code for Top Buttons add-on to Util.

File

contribs/top_buttons/top_buttons.install
View source
<?php

/**
 * @file
 * Install code for Top Buttons add-on to Util.
 */

/**
 * Implements hook_install();
 * Set module weight higher to better see modified buttons.
 */
function top_buttons_install() {
  db_query("UPDATE {system} SET weight = 20 WHERE name = 'top_buttons'");
}

/**
 * Implements hook_uninstall();
 * Remove module variables.
 */
function top_buttons_uninstall() {
  variable_del('top_buttons_types');
  variable_del('top_buttons_user');
  foreach (node_type_get_names() as $type => $name) {
    variable_del("top_buttons_{$type}");
    variable_del("top_buttons_remove_delete_{$type}");
  }
}

Functions

Namesort descending Description
top_buttons_install Implements hook_install(); Set module weight higher to better see modified buttons.
top_buttons_uninstall Implements hook_uninstall(); Remove module variables.