devel.rules.inc

Rules integration for Devel.

File

./devel.rules.inc

View source
<?php


/**
 * @file
 * Rules integration for Devel.
 */

/**
 * 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);
}

Functions

Title Deprecated Summary
devel_rules_action_info Implements hook_rules_action_info().
devel_rules_debug_action Rules action for debugging values.