You are here

function lti_tool_provider_outcomes_rules_action_info in LTI Tool Provider 7

Implements hook_rules_action_info().

File

lti_tool_provider_outcomes/lti_tool_provider_outcomes.module, line 702

Code

function lti_tool_provider_outcomes_rules_action_info() {
  $actions['outcomes_set_score'] = array(
    'label' => t('Set user score'),
    'named parameter' => TRUE,
    'base' => 'lti_tool_provider_outcomes_set_score_action',
    'group' => t('Outcomes'),
    'parameter' => array(
      'score' => array(
        'type' => 'decimal',
        'label' => t('Score'),
        'description' => t('The score of the current user'),
      ),
    ),
  );
  $actions['outcomes_pull_score'] = array(
    'label' => t('Retreives current user score'),
    'base' => 'lti_tool_provider_outcomes_pull_score_action',
    'group' => t('Outcomes'),
  );
  return $actions;
}