Just a little heads up: I think on the node/add initial page (content type selection), the content types should be sorted by the 'name' value, not the label. I tried customising the module myself, but I don't understand what a stdClass is and it's making things difficult.
On the Content Type Administration page, they are correctly sorted by name.
Just about everything in the UI is sorted by the displayed name, regardless of the backend label.
So this is somewhere between bug report/feature request.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 208023-3.patch | 770 bytes | traxer |
Comments
Comment #1
aeronox commentedI realise this isn't really an API thing - it's a node module issue. But there's no project for Node.
I found the simple answer:
node.module line 2214
$item[$type->type] = $out;
to
$item[$type->name] = $out;
.. lucky I spotted it because I was about to give up on all the array & object sorting stuff.
Comment #2
ax commentedthe "project for Node" is Drupal ...
Comment #3
traxer commentedConfirmed. Patch implements solution from aeronox. Drupal 6 is not affected.
Comment #4
drummCommitted to 5.x.
Comment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.