print.install 749 Bytes
Newer Older
jcnventura's avatar
jcnventura committed
1 2 3
<?php
// $Id$

jcnventura's avatar
jcnventura committed
4 5 6 7 8 9 10 11 12
/**
 * Implementation of hook_install().
 */
function print_install() {
  drupal_set_message(t("Printer-friendly Page settings are available under !link",
    array( '!link' => l('Administer > Site configuration > Printer-friendly Pages ',  'admin/settings/print' ) )
  ));
}

jcnventura's avatar
jcnventura committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26
/**
 * Implementation of hook_uninstall().
 */
function print_uninstall() {
  variable_del('print_settings');
  variable_del('print_display_comment');
  variable_del('print_sourceurl_settings');
  variable_del('print_html_settings');
  variable_del('print_robot_settings');
  $settings = db_query("SELECT name FROM {variable} WHERE name LIKE 'print\_display\_%'");
  while ($variable = db_fetch_object($settings)) {
    variable_del($variable->name);
  }
}