You are here

node_title_help_text.install in Node title help text 6

Same filename and directory in other branches
  1. 8 node_title_help_text.install
  2. 7 node_title_help_text.install

Removes all variables set by module.

File

node_title_help_text.install
View source
<?php

/**
 * @file
 * Removes all variables set by module.
 */

/**
 * Implements hook_uninstall().
 */
function node_title_help_text_uninstall() {
  $content_types = node_get_types('names');
  foreach ($content_types as $machine_name => $readable_name) {
    $name = 'node_title_help_text_' . $machine_name . '_title_help';
    variable_del($name);

    // Drupal core @link https://www.drupal.org/node/104572 bug. @endlink fix.
    $name = 'title_help_' . $machine_name;
    variable_del($name);
  }
}

Functions