home | career | drupal | java | mac | mysql | perl | php | scala | uml | unix

Drupal example source code file (mimemail.install)

This example Drupal source code file (mimemail.install) is included in the DevDaily.com "Drupal Source Code Warehouse" project. The intent of this project is to help you "Learn Drupal by Example".

PHP - Drupal tags/keywords

2010/10/30, array, delete, false, foreach, function, if, mimemail, mimemail_disable, mimemail_incoming, php, sgabe, variable, variables

The mimemail.install Drupal example source code

<?php /* $Id: mimemail.install,v 1.1.2.1 2010/10/30 18:00:24 sgabe Exp $ */

/**
 * Implementation of hook_disable().
 */
function mimemail_disable() {
  if (strpos(variable_get('smtp_library', ''), 'mimemail') !== FALSE) {
    variable_del('smtp_library');
  }
}

/**
 * Implementation of hook_uninstall()
 */
function mimemail_uninstall() {
  $variables = array(
    'mimemail_alter',
    'mimemail_crlf',
    'mimemail_engine',
    'mimemail_incoming',
    'mimemail_key',
    'mimemail_textonly',
    'mimemail_sitestyle',
  );
  foreach ($variables as $variable) {
    variable_del($variable);
  }
}

Other Drupal examples (source code examples)

Here is a short list of links related to this Drupal mimemail.install source code file:

new blog posts

"Drupal" is a registered trademark of Dries Buytaert.

my drupal tutorials and examples  

Copyright 1998-2016 Alvin Alexander, alvinalexander.com
All Rights Reserved.

Beginning in 2016, a portion of the proceeds from pages under the '/drupal-code-examples/' URI will be donated to charity.