You are here

function _views_system_get_type_name in Views System 7.3

Same name and namespace in other branches
  1. 6.3 views_system.module \_views_system_get_type_name()
  2. 6.2 views_system.module \_views_system_get_type_name()

Helper function; retrieves display name of the item type.

2 calls to _views_system_get_type_name()
views_handler_field_system_type::render in views/handlers/views_handler_field_system_type.inc
Render the field.
_views_system_get_type in ./views_system.module
Helper function; retrieves list of item types.

File

./views_system.module, line 61
This module extends the Views module and allows to create customized lists (pages, blocks) of modules, themes, and theme engines that are or have been installed in Drupal's file system.

Code

function _views_system_get_type_name($type) {
  $type_name = array();
  $type_name['module'] = t('Module');
  $type_name['theme'] = t('Theme');
  $type_name['theme_engine'] = t('Theme engine');
  return isset($type_name[$type]) ? $type_name[$type] : drupal_placeholder(t('Unknown'));
}