summaryrefslogtreecommitdiffstats
path: root/devel.rules.inc
blob: 0a7a078085980147474f261f9b4921cdfda93eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php

/**
 * Implements hook_rules_action_info().
 */
function devel_rules_action_info() {
  return array(
    'devel_debug' => array(
      'base' => 'devel_rules_debug_action',
      'label' => t('Debug value'),
      'group' => t('Devel'),
      'parameter' => array(
        'value' => array('type' => 'unknown', 'label' => t('Value to debug')),
      ),
    ),
  );
}

/**
 * Rules action for debugging values.
 */
function devel_rules_debug_action($value) {
  dpm($value);
}