devel.rules.inc 482 B

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