You are here

README.txt in Entity Delete Log 7

|===================|
| Entity Delete Log |
|===================|

  Creates a custom database log entry when entities are deleted.

|==============|
| Installation |
|==============|

  1. Download module
  2. Upload module to sites/all/modules
  3. Enable module
  4. Flush All of Drupal's Caches

|=======|
| Setup |
|=======|

  (admin/config/system/entity-delete-log)

  Configuration -> System -> Entity Delete Log

    Choose which entity types will have delete logging enabled.

|=============|
| Permissions |
|=============|

  To make changes to the Entity Delete Log settings, users need the "Adminster
  site configuration" permission.

  To view the Entity Delete Log, users need the "View site reports" permission.

|=======|
| Usage |
|=======|

  (admin/reports/entity-delete-log)

  Reports -> Entity Delete Log
  
    This page provides a listing of entity deletion log events.

|========|
| Extras |
|========|

  Organic Groups
  --------------
  
    Enable the "Entity Delete Log Organic Groups" sub module to track which
    Organic Group(s) an entity belonged to before it was deleted.

      (admin/reports/entity-delete-log/og)  

      Reports -> Entity Delete Log -> Organic Groups

|=======|
| Hooks |
|=======|

To customize the entity delete log data before it is inserted into the
database, use this hook:

/**
 * Implements hook_entity_delete_log_alter().
 */
function MY_MODULE_entity_delete_log_alter($entity, $type, $variables) {
  // Make changes to $variables here, then return $variables.
  return $variables;
}

After the entity delete log data has been inserted, this hook can be used to
do any additional processing.

/**
 * Implements hook_entity_delete_log_post_process().
 */
function MY_MODULE_entity_delete_log_post_process($entity, $type, $variables) {
  // Do anything you want after the entity deletion has been logged.
} 

File

README.txt
View source
  1. |===================|
  2. | Entity Delete Log |
  3. |===================|
  4. Creates a custom database log entry when entities are deleted.
  5. |==============|
  6. | Installation |
  7. |==============|
  8. 1. Download module
  9. 2. Upload module to sites/all/modules
  10. 3. Enable module
  11. 4. Flush All of Drupal's Caches
  12. |=======|
  13. | Setup |
  14. |=======|
  15. (admin/config/system/entity-delete-log)
  16. Configuration -> System -> Entity Delete Log
  17. Choose which entity types will have delete logging enabled.
  18. |=============|
  19. | Permissions |
  20. |=============|
  21. To make changes to the Entity Delete Log settings, users need the "Adminster
  22. site configuration" permission.
  23. To view the Entity Delete Log, users need the "View site reports" permission.
  24. |=======|
  25. | Usage |
  26. |=======|
  27. (admin/reports/entity-delete-log)
  28. Reports -> Entity Delete Log
  29. This page provides a listing of entity deletion log events.
  30. |========|
  31. | Extras |
  32. |========|
  33. Organic Groups
  34. --------------
  35. Enable the "Entity Delete Log Organic Groups" sub module to track which
  36. Organic Group(s) an entity belonged to before it was deleted.
  37. (admin/reports/entity-delete-log/og)
  38. Reports -> Entity Delete Log -> Organic Groups
  39. |=======|
  40. | Hooks |
  41. |=======|
  42. To customize the entity delete log data before it is inserted into the
  43. database, use this hook:
  44. /**
  45. * Implements hook_entity_delete_log_alter().
  46. */
  47. function MY_MODULE_entity_delete_log_alter($entity, $type, $variables) {
  48. // Make changes to $variables here, then return $variables.
  49. return $variables;
  50. }
  51. After the entity delete log data has been inserted, this hook can be used to
  52. do any additional processing.
  53. /**
  54. * Implements hook_entity_delete_log_post_process().
  55. */
  56. function MY_MODULE_entity_delete_log_post_process($entity, $type, $variables) {
  57. // Do anything you want after the entity deletion has been logged.
  58. }