hook_modules_disabled

  1. drupal
    1. drupal7
Versionen
drupal7 hook_modules_disabled($modules)

Perform necessary actions after modules are disabled.

This function differs from hook_disable() as it gives all other modules a chance to perform actions when modules are disabled, whereas hook_disable() will only be called on the module actually being disabled.

Übergabeparameter

$modules An array of the disabled modules.

See also

hook_disable()

Verwandte Themen

Code

modules/system/system.api.php, line 987

<?php
function hook_modules_disabled($modules) {
  if (in_array('lousy_module', $modules)) {
    mymodule_enable_functionality();
  }
}
?>

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