You are here

function nopremium_rules_condition_info in Node Option Premium 7

Same name and namespace in other branches
  1. 6 nopremium.rules.inc \nopremium_rules_condition_info()

Implementation of hook_rules_condition_info().

File

./nopremium.rules.inc, line 13
Written by Henri MEDOT <henri.medot[AT]absyx[DOT]fr> http://www.absyx.fr

Code

function nopremium_rules_condition_info() {
  $defaults = array(
    'parameter' => array(
      'node' => array(
        'type' => 'node',
        'label' => t('Content'),
      ),
    ),
    'group' => t('Node'),
    'access callback' => 'rules_node_integration_access',
  );
  $items['node_is_premium'] = $defaults + array(
    'label' => t('Content is premium'),
    'base' => 'rules_condition_node_is_premium',
  );
  return $items;
}