You are here

function _autoassignrole_user_input in Auto Assign Role 6

Same name and namespace in other branches
  1. 5.2 autoassignrole.module \_autoassignrole_user_input()
  2. 5 autoassignrole.module \_autoassignrole_user_input()
  3. 6.2 autoassignrole.module \_autoassignrole_user_input()

File

./autoassignrole.module, line 358
The main autoassignrole.module file

Code

function _autoassignrole_user_input($args) {
  switch ($args) {
    case 'type':
      if (_autoassignrole_get_settings('user_multiple') == 0) {
        $type = 'radios';
      }
      else {
        $type = 'checkboxes';
      }
      return $type;
      break;
    case 'required':
      if (_autoassignrole_get_settings('user_required') == 0) {
        $required = FALSE;
      }
      else {
        $required = TRUE;
      }
      return $required;
      break;
  }
}