You are here

function signup_handler_filter_signup_user_authenticated::get_value_options in Signup 7

Same name and namespace in other branches
  1. 6.2 views/handlers/signup_handler_filter_signup_user_authenticated.inc \signup_handler_filter_signup_user_authenticated::get_value_options()
  2. 6 views/handlers/signup_handler_filter_signup_user_authenticated.inc \signup_handler_filter_signup_user_authenticated::get_value_options()

Return the possible options for this filter.

Child classes should override this function to set the possible values for the filter. Since this is a boolean filter, the array should have two possible keys: 1 for "True" and 0 for "False", although the labels can be whatever makes sense for the filter. These values are used for configuring the filter, when the filter is exposed, and in the admin summary of the filter. Normally, this should be static data, but if it's dynamic for some reason, child classes should use a guard to reduce database hits as much as possible.

Overrides views_handler_filter_boolean_operator::get_value_options

File

views/handlers/signup_handler_filter_signup_user_authenticated.inc, line 6

Class

signup_handler_filter_signup_user_authenticated
Filter signups based on if the user is anonymous or authenticated.

Code

function get_value_options() {
  $this->value_options = array(
    1 => t('Authenticated'),
    0 => t('Anonymous'),
  );
}