Drupal module to report status of various network systems. Will automatically check websites and report results to users.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

systemstatus.install 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?php
  2. // $Id$
  3. /**
  4. * @file
  5. * Implement CCK's install/uninstall hooks.
  6. */
  7. /**
  8. * Implementation of hook_install().
  9. */
  10. function systemstatus_install() {
  11. drupal_load( 'module', 'content' );
  12. if ( function_exists( 'content_notify' ) ) {
  13. content_notify( 'install', 'systemstatus' );
  14. }
  15. }
  16. /**
  17. * Implementation of hook_uninstall().
  18. */
  19. function systemstatus_uninstall() {
  20. db_query( "DELETE FROM {variable} WHERE name LIKE 'systemstatus_%';" );
  21. drupal_load( 'module', 'content' );
  22. if ( function_exists( 'content_notify' ) ) {
  23. content_notify( 'uninstall', 'systemstatus' );
  24. }
  25. }
  26. /**
  27. * Implementation of hook_enable().
  28. *
  29. * Notify content module when this module is enabled.
  30. */
  31. function systemstatus_enable() {
  32. drupal_load( 'module', 'content' );
  33. if ( function_exists( 'content_notify' ) ) {
  34. content_notify( 'enable', 'systemstatus' );
  35. }
  36. }
  37. /**
  38. * Implementation of hook_disable().
  39. *
  40. * Notify content module when this module is disabled.
  41. */
  42. function systemstatus_disable() {
  43. drupal_load( 'module', 'content' );
  44. if ( function_exists( 'content_notify' ) ) {
  45. content_notify( 'disable', 'systemstatus' );
  46. }
  47. }