views_handler_filter_node_language.inc

Same filename in other branches
  1. 7.x-3.x modules/locale/views_handler_filter_node_language.inc

File

modules/translation/views_handler_filter_node_language.inc

View source
<?php


/**
 * Filter by language.
 *
 * @ingroup views_filter_handlers
 */
class views_handler_filter_node_language extends views_handler_filter_in_operator {
    function get_value_options() {
        if (!isset($this->value_options)) {
            $this->value_title = t('Language');
            $languages = array(
                '***CURRENT_LANGUAGE***' => t("Current user's language"),
                '***DEFAULT_LANGUAGE***' => t("Default site language"),
                '***NO_LANGUAGE***' => t('No language'),
            );
            $languages = array_merge($languages, views_language_list());
            $this->value_options = $languages;
        }
    }

}

Classes

Title Deprecated Summary
views_handler_filter_node_language Filter by language.