Doesn't work with node types named _
drewish - October 20, 2008 - 22:56
| Project: | Submit Again |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
The underscore in node type names gets replaced with a dash. From node_menu():
<?php
foreach (node_get_types('types', NULL, TRUE) as $type) {
$type_url_str = str_replace('_', '-', $type->type);
$items['node/add/'. $type_url_str] = array(
?>| Attachment | Size |
|---|---|
| submitagain.patch | 705 bytes |

#1
Committed in CVS revision 1.2.2.3.
#2
Automatically closed -- issue fixed for two weeks with no activity.