You are here

function opigno_quiz_app_rules_action_info in Opigno Quiz App 7

Implements hook_rules_action_info().

File

./opigno_quiz_app.rules.inc, line 167
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_action_info() {
  return array(
    'opigno_quiz_app_rules_quiz_get_property' => array(
      'group' => 'Quiz',
      'label' => t('Quiz get property'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Quiz node'),
        ),
        'property' => array(
          'type' => 'text',
          'label' => t('Quiz property'),
        ),
      ),
      'provides' => array(
        'quiz_property' => array(
          'type' => 'unknown',
          'label' => t('Quiz property'),
        ),
      ),
    ),
    'opigno_quiz_app_rules_quiz_get_highest_score' => array(
      'group' => 'Quiz',
      'label' => t('Quiz get best score'),
      'arguments' => array(
        'node' => array(
          'type' => 'node',
          'label' => t('Quiz node'),
        ),
        'property' => array(
          'type' => 'user',
          'label' => t('Quiz taker'),
        ),
      ),
      'provides' => array(
        'quiz_score' => array(
          'type' => 'decimal',
          'label' => t('Quiz score'),
        ),
      ),
    ),
  );
}