tripal_daemon.module 759 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /**
  3. * @file
  4. * Non-Drush Tripal Daemon functionality
  5. */
  6. /**
  7. * Implements hook_daemon_api_info().
  8. * Registers our Daemon with the Daemon API
  9. */
  10. function tripal_daemon_daemon_api_info() {
  11. $daemon = array();
  12. $daemon['tripal_daemon'] = array(
  13. // the machine name of the daemon (same as key above)
  14. 'machine_name' => 'tripal_daemon',
  15. // A human-readable name for your daemon
  16. 'name' => 'Tripal Job Daemon',
  17. // this module (ie: the module implementing the daemon)
  18. 'module' => 'tripal_daemon',
  19. // The class extending JobDaemon and implementing your daemon-specific functionality
  20. // This class should be in a [classname].inc file in your modules base directory
  21. 'class' => 'TripalJobDaemon'
  22. );
  23. return $daemon;
  24. }