Same filename and directory in other branches
  1. 2.x easy_breadcrumb.install 1 comment
  2. 7.x-1.x easy_breadcrumb.install 1 comment
  3. 8.x-1.x easy_breadcrumb.install 1 comment

Install hooks.

File

./easy_breadcrumb.install

View source
<?php


/**
 * @file
 * Install hooks.
 */

/**
 * Implements hook_uninstall().
 */
function easy_breadcrumb_uninstall() {
    require_once 'includes/EasyBreadcrumbConstants.inc';
    // Use reflection for getting constants.
    $o_class = new ReflectionClass('EasyBreadcrumbConstants');
    $constants = $o_class->getConstants();
    // Deletes all the created variables by this module.
    foreach ($constants as $constant_name => $constant_value) {
        // The database variables are named using the prefix 'DB_VAR'.
        if (strpos($constant_name, 'DB_VAR_') === 0) {
            variable_del($constant_value);
        }
    }
}

/**
 * Theme-registry has to be flushed because of new tpl logic is implemented.
 */
function easy_breadcrumb_update_7001() {
    drupal_theme_rebuild();
}

Functions

Title Deprecated Summary
easy_breadcrumb_uninstall Implements hook_uninstall().
easy_breadcrumb_update_7001 Theme-registry has to be flushed because of new tpl logic is implemented.