hook_uninstall

  1. drupal
    1. drupal6
    2. drupal7 system.api.php
Versionen
drupal6 – drupal7 hook_uninstall()

Remove any information that the module sets.

The information that the module should remove includes:

  • Variables that the module has set using variable_set().
  • Modifications to existing tables.
  • Database tables the module created.

The uninstall hook will fire when the module gets uninstalled.

Verwandte Themen

Code

developer-docs/hooks/install.php, line 305

<?php
function hook_uninstall() {
  drupal_uninstall_schema('upload');
  variable_del('upload_file_types');
}
?>

Kommentare

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen

Kommentar hinzufügen

Der Inhalt dieses Feldes wird nicht öffentlich zugänglich angezeigt.
  • Internet- und E-Mail-Adressen werden automatisch umgewandelt.
  • Zulässige HTML-Tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Zeilen und Absätze werden automatisch erzeugt.

Weitere Informationen über Formatierungsoptionen