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