You are here

user_relationship_mailer.install in User Relationships 6

Same filename and directory in other branches
  1. 7 user_relationship_mailer/user_relationship_mailer.install

Installation functions for User Relationships Mailer module

File

user_relationship_mailer/user_relationship_mailer.install
View source
<?php

/**
 * @file Installation functions for User Relationships Mailer module
 */
function user_relationship_mailer_uninstall() {
  variable_del('user_relationship_mailer_send_mail');
  module_load_include('inc', 'user_relationship_mailer', 'user_relationship_mailer_defaults');
  global $_user_relationship_mailer_ops;
  foreach ($_user_relationship_mailer_ops as $op) {
    variable_del("user_relationship_mailer_send_{$op}");
    variable_del("user_relationship_mailer_{$op}_subject");
    variable_del("user_relationship_mailer_{$op}_message");
  }
}

/**
 * Implementation of hook_update_N().
 * Update 6100 makes sure pre_approved emails are not sent to keep default behavior for upgrading users.
 */
function user_relationship_mailer_update_6100() {
  variable_set('user_relationship_mailer_send_pre_approved', FALSE);
  return array();
}

Functions

Namesort descending Description
user_relationship_mailer_uninstall @file Installation functions for User Relationships Mailer module
user_relationship_mailer_update_6100 Implementation of hook_update_N(). Update 6100 makes sure pre_approved emails are not sent to keep default behavior for upgrading users.