You are here

user_relationship_mailer.install in User Relationships 5

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

File

plugins/user_relationship_mailer/user_relationship_mailer.install
View source
<?php

function user_relationship_mailer_uninstall() {
  variable_del('user_relationship_mailer_send_mail');
  variable_del('user_relationships_request_subject');
  variable_del('user_relationships_cancel_subject');
  variable_del('user_relationships_approve_subject');
  variable_del('user_relationships_disapproves_subject');
  variable_del('user_relationships_remove_subject');
  $ops = variable_get('user_relationship_mailer_ops', array(
    'request',
    'cancel',
    'approve',
    'disapprove',
    'remove',
  ));
  foreach ($ops as $op) {
    variable_del("user_relationship_mailer_send_{$op}");
    variable_del("user_relationship_mailer_{$op}_message");
  }
  variable_del('user_relationship_mailer_ops');
}