You are here

devel.rules.inc in Devel 7

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

Namesort descending Description
devel_rules_action_info Implements hook_rules_action_info().
devel_rules_debug_action Rules action for debugging values.