Commit 8e616cce authored by merlinofchaos's avatar merlinofchaos

Add "no language" as an option for Node: Language

parent ca5a1c1f
......@@ -1093,7 +1093,7 @@ class views_handler_filter_node_language extends views_handler_filter_in_operato
function get_value_options() {
if (!isset($this->value_options)) {
$this->value_title = t('Language');
$languages = array('***CURRENT_LANGUAGE***' => t("Current user's language"));
$languages = array('***CURRENT_LANGUAGE***' => t("Current user's language"), '***NO_LANGUAGE***' => t('No language'));
$languages = array_merge($languages, locale_language_list());
$this->value_options = $languages;
}
......
......@@ -1335,7 +1335,11 @@ function drupal_build_form($form_id, &$form_state) {
*/
function views_views_query_substitutions($view) {
global $language;
return array('***CURRENT_TIME***' => time(), '***CURRENT_LANGUAGE***' => $language->language);
return array(
'***CURRENT_TIME***' => time(),
'***CURRENT_LANGUAGE***' => $language->language,
'***NO_LANGUAGE***' => '',
);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment