You are here

printfriendly.install in PrintFriendly & PDF 7

The install and update code for the printfriendly module.

File

printfriendly.install
View source
<?php

/**
 * @file
 * The install and update code for the printfriendly module.
 */

/**
 * Remove unused variables.
 */
function printfriendly_uninstall() {
  variable_del('printfriendly_types');
  variable_del('printfriendly_button_type');
  variable_del('printfriendly_label');
  variable_del('printfriendly_description');
  variable_del('printfriendly_image');
  variable_del('printfriendly_display');
  variable_del('printfriendly_website_protocol');
  variable_del('printfriendly_text');
}

/**
 * Upgrade PrintFriendly module settings to 2.x version.
 */
function printfriendly_update_7200() {
  variable_del('printfriendly_website_protocol');
}

Functions

Namesort descending Description
printfriendly_uninstall Remove unused variables.
printfriendly_update_7200 Upgrade PrintFriendly module settings to 2.x version.