You are here

pathologic.install in Pathologic 6.2

Standard .install file for Pathologic.

File

pathologic.install
View source
<?php

/**
 * @file
 * Standard .install file for Pathologic.
 */

/**
 * Implementation of hook_enable().
 */
function pathologic_enable() {
  drupal_set_message(t('The Pathologic module has been enabled; however, the Pathologic input filter must be added to the <a href="!ifs">input formats</a> in use on this site before it will have any effect. For more information, including complete installation and configuration instructions, please see <a href="http://drupal.org/node/257026">Pathologic&rsquo;s documentation</a>.', array(
    '!ifs' => url('admin/settings/filters'),
  )));
}

/**
 * Implementation of hook_uninstall().
 */
function pathologic_uninstall() {

  // Iterate through the site's variables and delete ones created by Pathologic.
  global $conf;
  foreach (array_keys($conf) as $key) {
    if (strpos($key, 'filter_pathologic_') === 0) {
      variable_del($key);
    }
  }
}

Functions

Namesort descending Description
pathologic_enable Implementation of hook_enable().
pathologic_uninstall Implementation of hook_uninstall().