prod_monitor.api.php 1000 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. /**
  3. * @file
  4. * Documentation on api functions for prod_monitor.
  5. *
  6. * @ingroup prod_monitor
  7. * @{
  8. */
  9. /**
  10. * Implements hook_prod_monitor_ignore().
  11. *
  12. * Allows modules to specify certain ignore directives, currently
  13. * a list of modules whose update status should be ignored.
  14. *
  15. * @see _prod_monitor_get_site_ignored().
  16. * @see _prod_monitor_calculate_project_data().
  17. */
  18. function hook_prod_monitor_ignore($site_id) {
  19. $ignore = array('updates' => array());
  20. // Ignore this module (suppress warnings) because we cannot do anything
  21. // about it's update status as it has been abandoned and we are not going
  22. // to stop using it.
  23. if ($site_id == 12) {
  24. $ignore['updates'][] = 'node_embed';
  25. }
  26. return $ignore;
  27. }
  28. /**
  29. * Implements hook_prod_monitor_project_data_alter().
  30. *
  31. * Allows modules to alter the data being calculated for a project.
  32. *
  33. * @see _prod_monitor_calculate_project_data().
  34. */
  35. function hook_prod_monitor_project_data_alter($site_id, &$data, $available) {
  36. }