Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
node system
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
8 Jan 2007 at 18:26 UTC
Updated:
23 Jan 2007 at 09:15 UTC
Machine-name node types should use underscores.
All node type underscores in URLs should be dashes.
We have lots of str_replaces to turn underscores from machine-readable to dashes in URLs.
But, we're missing a dash to underscore for hook_help, per the new 'help' index of hook_node_info.
The end result is
http://www.example.com/node/add/casetracker-case (the right URL, but with no help).
http://www.example.com/node/add/casetracker_case (the "wrong" URL, but with help).
This patch adds a simple dash to underscore check in node_help, which allows help on both URLs.
Personally, I'm not a fan of all this str manipulation.
| Comment | File | Size | Author |
|---|---|---|---|
| _underdashhelp.patch | 628 bytes | morbus iff |
Comments
Comment #1
webchickConfirmed with a content type called "wiggle_widget" (don't ask ;)). Before patch, my Submission guidelines text didn't show up; after patch, it did. The "blog" content type kept its help text.
RTBC.
Comment #2
drummCOmmitted to HEAD>
Comment #3
(not verified) commented