You are here

function nopremium_rules_condition_info in Node Option Premium 6

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

Implementation of hook_rules_condition_info()

File

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

Code

function nopremium_rules_condition_info() {
  $items = array();
  $defaults = array(
    'arguments' => array(
      'node' => array(
        'type' => 'node',
        'label' => t('Content'),
      ),
    ),
    'module' => 'Node',
  );
  $items['rules_condition_content_is_premium'] = $defaults + array(
    'label' => t('Content is premium'),
  );
  return $items;
}