You are here

function print_mail_enable in Printer, email and PDF versions 7

Same name and namespace in other branches
  1. 7.2 print_mail/print_mail.install \print_mail_enable()

Implements hook_enable().

File

print_mail/print_mail.install, line 13
Install, update and uninstall functions for the print_mail module.

Code

function print_mail_enable() {
  $t = get_t();

  // Module weight
  db_update('system')
    ->fields(array(
    'weight' => 1,
  ))
    ->condition('type', 'module')
    ->condition('name', 'print_mail')
    ->execute();
  if (module_exists('mailsystem')) {
    mailsystem_set(array(
      'print_mail' => 'DefaultMailSystem',
    ));
  }
}