Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: ax commentedthe "project for Node" is Drupal ...
Comment #3
traxer CreditAttribution: traxer commentedConfirmed. Patch implements solution from aeronox. Drupal 6 is not affected.
Comment #4
drummCommitted to 5.x.
Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedAutomatically closed -- issue fixed for two weeks with no activity.