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
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(
?>

AttachmentSize
submitagain.patch705 bytes

#1

deekayen - November 12, 2008 - 17:45
Status:needs review» fixed

Committed in CVS revision 1.2.2.3.

#2

System Message - November 26, 2008 - 17:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.