views_handler_argument_node_language.inc in Views (for Drupal 7) 6.2
File
modules/node/views_handler_argument_node_language.inc
View source
<?php
class views_handler_argument_node_language extends views_handler_argument {
function construct() {
parent::construct('language');
}
function summary_name($data) {
return $this
->node_language($data->{$this->name_alias});
}
function title() {
return $this
->node_language($this->argument);
}
function node_language($langcode) {
$languages = locale_language_list();
return isset($languages[$langcode]) ? $languages[$langcode] : t('Unknown language');
}
}