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.
_node_types_build()'s return value is an object, not an array as stated in the function docs.
* @return
- * Associative array with two components:
+ * An object including two properties:
Comment | File | Size | Author |
---|---|---|---|
#6 | drupal-_node_types_build_doc_arr_obj-1598508-6.patch | 654 bytes | jeffschuler |
#4 | drupal-_node_types_build_doc_arr_obj-1598508-1.patch | 659 bytes | jeffschuler |
#1 | drupal-_node_types_build_doc_arr_obj-1598508-1.patch | 659 bytes | jeffschuler |
Comments
Comment #1
jeffschulerComment #2
jhodgdonGood catch! Do you think it's good to say "an object including two properties" though? I think "with two properties" is just as good, if not better?
Comment #3
jhodgdonComment #4
jeffschulerAgreed. Thanks for improving.
Comment #5
jhodgdonThis looks like the same patch as the previous version.
Comment #6
jeffschulerWhoops, sorry!
Comment #7
jhodgdonThanks! I'll get this committed shortly.
Comment #8
jhodgdonThanks! Committed to 8.x/7.x.