draggableviews.rules.inc 580 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * @file
  4. * Rules hooks implementation.
  5. */
  6. /**
  7. * Implements hook_rules_event_info().
  8. */
  9. function draggableviews_rules_event_info() {
  10. $events = array();
  11. $events['draggableviews_rules_event_sorted'] = array(
  12. 'label' => t('A view has been sorted'),
  13. 'group' => t('DraggableViews'),
  14. 'variables' => array(
  15. 'view_name' => array(
  16. 'type' => 'text',
  17. 'label' => t('view name'),
  18. ),
  19. 'display_name' => array(
  20. 'type' => 'text',
  21. 'label' => t('view current display name'),
  22. ),
  23. ),
  24. );
  25. return $events;
  26. }