1 node.theme.inc | theme_node_admin_overview($variables) |
Returns HTML for a node type description for the content type admin page.
Parameters
$variables: An associative array containing:
- name: The human-readable name of the content type.
- type: An object containing the 'type' (machine name) and 'description' of the content type.
Deprecated
as of 1.19.4. Labels are now output using the theme_label_machine_name() function, and descriptions are displayed in a separate column.
Related topics
File
- core/
modules/ node/ node.theme.inc, line 128 - Theme functions for the Node module.
Code
function theme_node_admin_overview($variables) {
watchdog_deprecated_function('theme', __FUNCTION__);
$name = $variables['name'];
$type = $variables['type'];
$output = check_plain($name);
$output .= ' <small>' . t('(Machine name: @type)', array('@type' => $type->type)) . '</small>';
$output .= '<div class="description">' . filter_xss_admin($type->description) . '</div>';
return $output;
}