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 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 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 commentedWhat is the status of this ticket:) Can we close this...