You are here

function i18nviews_handler_argument_node_type::node_type in Internationalization Views 7.3

Get the friendly version of a content type's name.

Parameters

string $type: The content type to check.

Return value

string The system friendly version of a content type's name.

Overrides views_handler_argument_node_type::node_type

File

includes/i18nviews_handler_argument_node_type.inc, line 12
Definition of views_handler_argument_node_type.

Class

i18nviews_handler_argument_node_type
Argument handler to accept a node type.

Code

function node_type($type) {
  $output = node_type_get_name($type);
  if (empty($output)) {
    return t('Unknown content type');
  }
  return i18n_node_type_name($type, $output);
}