devel.rules.inc 532 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. /**
  3. * @file
  4. * Rules integration for Devel.
  5. */
  6. /**
  7. * Implements hook_rules_action_info().
  8. */
  9. function devel_rules_action_info() {
  10. return array(
  11. 'devel_debug' => array(
  12. 'base' => 'devel_rules_debug_action',
  13. 'label' => t('Debug value'),
  14. 'group' => t('Devel'),
  15. 'parameter' => array(
  16. 'value' => array('type' => 'unknown', 'label' => t('Value to debug')),
  17. ),
  18. ),
  19. );
  20. }
  21. /**
  22. * Rules action for debugging values.
  23. */
  24. function devel_rules_debug_action($value) {
  25. dpm($value);
  26. }