function userpoints_rules_rules_condition_info in User Points 6
Implementation of hook_rules_condition_info().
File
- ./
userpoints_rules.rules.inc, line 106 - Provide better integration into the rules module
Code
function userpoints_rules_rules_condition_info() {
return array(
'userpoints_rules_category' => array(
'label' => t('Check the transaction category'),
'arguments' => array(
'userpoints_transaction' => array(
'type' => 'userpoints_transaction',
'label' => t('Userpoints transaction'),
),
),
'module' => 'Userpoints',
),
'userpoints_rules_amount_before' => array(
'label' => t('Compare Userpoints before the transaction'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User'),
),
'userpoints_transaction' => array(
'type' => 'userpoints_transaction',
'label' => t('Userpoints transaction'),
),
),
'module' => 'Userpoints',
'eval input' => array(
'amount',
),
),
'userpoints_rules_transaction_amount' => array(
'label' => t('Compare the transaction amount'),
'arguments' => array(
'userpoints_transaction' => array(
'type' => 'userpoints_transaction',
'label' => t('Userpoints transaction'),
),
),
'module' => 'Userpoints',
'eval input' => array(
'amount',
),
),
'userpoints_rules_amount' => array(
'label' => t('Compare current Userpoints'),
'arguments' => array(
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
'module' => 'Userpoints',
'eval input' => array(
'amount',
),
),
);
}