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.
I was working in some contrib hook_boot code recently, and noticed that I had to perform a full bootstrap just to use node_load/node_load_multiple with drupal_load('module', 'node') because there is a call to drupal_schema_fields_sql(), which is in common.inc. The same applies to taxonomy_term_load/taxonomy_term_load_multiple. I suggest moving drupal_schema_fields_sql() to bootstrap.inc.
Comment | File | Size | Author |
---|---|---|---|
#1 | 345497-mov-drupal-schema-fields-sql-D7.patch | 2.33 KB | Dave Reid |
Comments
Comment #1
Dave ReidComment #2
Damien Tournoud CreditAttribution: Damien Tournoud commentedIt sounds weird to move that function to bootstrap.inc. Why not database.inc, where it can make new database friends?
Comment #4
Dave ReidTesting failure on slave #8.
Comment #5
Damien Tournoud CreditAttribution: Damien Tournoud commentedReview #2 still stands.
Comment #6
Dave ReidMy main reason for moving it to bootstrap.inc is because we have a group of schema API functions there already, like drupal_get_schema().
Comment #7
Jooblay.net CreditAttribution: Jooblay.net commentedWhat is the status of this ticket:) Can we close this...