You are here

function node_accessibility_rules_condition_info in Node Accessibility 7

Implements hook_rules_condition_info().

File

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

Code

function node_accessibility_rules_condition_info() {
  $items = array();
  $items['content_is_using_node_accessibility'] = array(
    'group' => t("Node"),
    'label' => t("Content is using accessibility validation"),
    'base' => 'node_accessibility_rules_condition_content_is_using_node_accessibility',
    'parameter' => array(
      'node' => array(
        'type' => 'node',
        'label' => t("Content"),
      ),
    ),
    'access callback' => 'rules_node_integration_access',
  );
  $items['content_is_requiring_node_accessibility_validation'] = array(
    'group' => t("Node"),
    'label' => t("Content is requiring accessibility validation"),
    'base' => 'node_accessibility_rules_condition_content_is_requiring_node_accessibility_validation',
    'parameter' => array(
      'node' => array(
        'type' => 'node',
        'label' => t("Content"),
      ),
    ),
    'access callback' => 'rules_node_integration_access',
  );
  return $items;
}