You are here

function userpoints_action_grant_points_form_alter in User Points 7.2

Same name and namespace in other branches
  1. 7 userpoints_rules.rules.inc \userpoints_action_grant_points_form_alter()

File

userpoints_rules/userpoints_rules.rules.inc, line 190
Provide better integration into the rules group

Code

function userpoints_action_grant_points_form_alter(&$form, &$form_state) {

  // Empty value by default.
  $form['parameter']['expirydate']['settings']['expirydate']['#default_value'] = '';

  // Operation is a single line textfield.
  $form['parameter']['operation']['settings']['operation']['#type'] = 'textfield';
}