rules_scheduler.views.inc 2.2 KB

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