You are here

function flag_user::form_input in Flag 7.2

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

File

./flag.inc, line 1794
Implements various flags. Uses object oriented style inspired by that of Views 2.

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' : '';
}