function views_handler_argument_node_type::node_type

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.

2 calls to views_handler_argument_node_type::node_type()
views_handler_argument_node_type::summary_name in modules/node/views_handler_argument_node_type.inc
Override the behavior of summary_name(). Get the user friendly version of the node type.
views_handler_argument_node_type::title in modules/node/views_handler_argument_node_type.inc
Override the behavior of title(). Get the user friendly version of the node type.

File

modules/node/views_handler_argument_node_type.inc, line 45

Class

views_handler_argument_node_type
Argument handler to accept a node type.

Code

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