rules_scheduler.views.inc 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <?php
  2. /**
  3. * @file
  4. * Views integration for the rules scheduler module.
  5. */
  6. /**
  7. * Implements hook_views_data().
  8. *
  9. * Specifies the list of future scheduled tasks displayed on the schedule page.
  10. */
  11. function rules_scheduler_views_data() {
  12. $table = array(
  13. 'rules_scheduler' => array(
  14. 'table' => array(
  15. 'group' => 'Rules scheduler',
  16. 'base' => array(
  17. 'field' => 'tid',
  18. 'title' => t('Scheduled Rules components'),
  19. 'help' => t("Scheduled Rules components that are executed based on time and cron"),
  20. 'weight' => -10,
  21. ),
  22. ),
  23. 'tid' => array(
  24. 'title' => t('Tid'),
  25. 'help' => t('The internal ID of the scheduled component'),
  26. 'field' => array(
  27. 'click sortable' => TRUE,
  28. ),
  29. 'filter' => array(
  30. 'handler' => 'views_handler_filter_numeric',
  31. ),
  32. 'sort' => array(
  33. 'handler' => 'views_handler_sort',
  34. ),
  35. ),
  36. 'config' => array(
  37. 'title' => t('Component name'),
  38. 'help' => t('The name of the component'),
  39. 'field' => array(
  40. 'click sortable' => TRUE,
  41. ),
  42. 'filter' => array(
  43. 'handler' => 'rules_scheduler_views_filter',
  44. ),
  45. 'argument' => array(
  46. 'handler' => 'views_handler_argument_string',
  47. ),
  48. 'sort' => array(
  49. 'handler' => 'views_handler_sort',
  50. ),
  51. ),
  52. 'date' => array(
  53. 'title' => t('Scheduled date'),
  54. 'help' => t('Scheduled date and time stamp'),
  55. 'field' => array(
  56. 'handler' => 'views_handler_field_date',
  57. 'click sortable' => TRUE,
  58. ),
  59. 'filter' => array(
  60. 'handler' => 'views_handler_filter',
  61. ),
  62. 'sort' => array(
  63. 'handler' => 'views_handler_sort',
  64. ),
  65. ),
  66. 'identifier' => array(
  67. 'title' => t('User provided identifier'),
  68. 'help' => t('ID to recognize this specific scheduled task'),
  69. 'field' => array(
  70. 'click sortable' => TRUE,
  71. ),
  72. 'filter' => array(
  73. 'handler' => 'views_handler_filter_string',
  74. ),
  75. 'sort' => array(
  76. 'handler' => 'views_handler_sort',
  77. ),
  78. ),
  79. ),
  80. );
  81. return $table;
  82. }