You are here

function node_accessibility_rules_action_info in Node Accessibility 7

Implements hook_rules_action_info() on behalf of the node module.

File

./node_accessibility.rules.inc, line 71
Rules integration file for node accessibility.

Code

function node_accessibility_rules_action_info() {
  $items = array(
    'node_accessibility_validate_action' => array(
      'label' => t("Accessibility validate content"),
      'group' => t("Node"),
      'base' => 'node_accessibility_validate_rules_action',
      'parameter' => array(
        'node' => array(
          'type' => 'node',
          'label' => t("Content that will be accessibility validated"),
        ),
      ),
      'provides' => array(
        'validation_results' => array(
          'type' => 'unknown',
          'label' => t("Validation results"),
        ),
      ),
    ),
    'node_accessibility_delete_action' => array(
      'label' => t("Delete accessibility statistics for content"),
      'group' => t("Node"),
      'base' => 'node_accessibility_delete_rules_action',
      'parameter' => array(
        'node' => array(
          'type' => 'node',
          'label' => t("Content to delete statistics from"),
        ),
      ),
    ),
  );
  return $items;
}