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.
Problem/Motivation
If you create a content type named 'ab' and you have a content type named 'Basic Page' you will see in the configuration page (admin/config/content/onlyone) this order:
Basic Page
ab
This is because the asort()
function is used in the _onlyone_process()
function but don't take in count the case sensitive.
Proposed resolution
Use the SORT_NATURAL | SORT_FLAG_CASE
params in the asort()
function.
asort($array, SORT_NATURAL | SORT_FLAG_CASE);
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
adriancidComment #5
adriancid