You are here

function better_watchdog_ui_rules_rules_action_info in Better Watchdog UI 7.2

Same name and namespace in other branches
  1. 7.3 better_watchdog_ui_rules/better_watchdog_ui_rules.rules.inc \better_watchdog_ui_rules_rules_action_info()

Implements hook_rules_action_info().

File

better_watchdog_ui_rules/better_watchdog_ui_rules.rules.inc, line 205
General better_watchdog_ui related rules integration.

Code

function better_watchdog_ui_rules_rules_action_info() {
  $actions = array();
  $actions['better_watchdog_ui_rules_action_add_watchdog'] = array(
    'label' => t('Add watchdog entry'),
    'group' => t('Better Watchdog UI'),
    'type' => 'better_watchdog_ui_watchdog',
    'configurable' => FALSE,
    'parameter' => array(
      'type' => array(
        'type' => 'text',
        'label' => t('Type'),
      ),
      'message' => array(
        'type' => 'text',
        'label' => t('Message'),
      ),
      'severity' => array(
        'type' => 'text',
        'label' => t('Severity'),
        'options list' => 'watchdog_severity_levels',
      ),
    ),
  );
  return $actions;
}