You are here

function flag_user::form_input in Flag 7.3

Same name and namespace in other branches
  1. 6.2 flag.inc \flag_user::form_input()
  2. 7.2 flag.inc \flag_user::form_input()

Update the flag with settings entered in a form.

Overrides flag_flag::form_input

File

includes/flag/flag_user.inc, line 48
Contains the flag_user class.

Class

flag_user
Implements a user flag.

Code

function form_input($form_values) {
  parent::form_input($form_values);

  // The access_uid value is intentionally backwards from the UI, to avoid
  // confusion caused by checking a box to disable a feature.
  $this->access_uid = empty($form_values['access_uid']) ? 'others' : '';
}