function theme_node_add_list in Drupal 6
Same name and namespace in other branches
- 7 modules/node/node.pages.inc \theme_node_add_list()
Display the list of available node types for node creation.
Related topics
1 theme call to theme_node_add_list()
- node_add_page in modules/
node/ node.pages.inc - Page callback: Displays add content links for available content types.
File
- modules/
node/ node.pages.inc, line 31 - Page callbacks for adding, editing, deleting, and revisions management for content.
Code
function theme_node_add_list($content) {
$output = '';
if ($content) {
$output = '<dl class="node-type-list">';
foreach ($content as $item) {
$output .= '<dt>' . l($item['title'], $item['href'], $item['localized_options']) . '</dt>';
$output .= '<dd>' . filter_xss_admin($item['description']) . '</dd>';
}
$output .= '</dl>';
}
return $output;
}