function opigno_quiz_app_rules_condition_info in Opigno Quiz App 7
Implements hook_rules_condition_info().
File
- ./
opigno_quiz_app.rules.inc, line 47 - Rules hook definitions. Many of these should be moved back to the Quiz Rules module once it's ported.
Code
function opigno_quiz_app_rules_condition_info() {
return array(
'opigno_quiz_app_rules_quiz_property_is' => array(
'group' => 'Quiz',
'label' => t('Quiz property is'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Quiz node'),
),
'property' => array(
'type' => 'text',
'label' => t('Quiz property'),
),
'value' => array(
'type' => 'text',
'label' => t('Value'),
),
),
),
'opigno_quiz_app_rules_has_answered_quiz' => array(
'group' => 'Quiz',
'label' => t('User has answered quiz'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Quiz node'),
),
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
),
'opigno_quiz_app_rules_has_passed_quiz' => array(
'group' => 'Quiz',
'label' => t('User has passed quiz'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Quiz node'),
),
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
),
'opigno_quiz_app_rules_has_failed_quiz' => array(
'group' => 'Quiz',
'label' => t('User has failed quiz'),
'arguments' => array(
'node' => array(
'type' => 'node',
'label' => t('Quiz node'),
),
'user' => array(
'type' => 'user',
'label' => t('User'),
),
),
),
);
}