node.pages.inc (bugfix)//TODO: make patches

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
/**
* Display the list of available node types for node creation.
*
* @ingroup themeable
*/
function theme_node_add_list($content) {
$output = '';
if ($content) {
$output = '<dl class="node-type-list">';
foreach ($content as $item) {
$output .= '<dt>'. l(t($item['title']), $item['href'], $item['localized_options']) .'</dt>';
$output .= '<dd>'. filter_xss_admin($item['description']) .'</dd>';
}
$output .= '</dl>';
}
return $output;
}