With the architecture change in 1.5 that made it easier to enable entities, it also caused more entities to become enabled than should have been. Update the install and update scripts to block out more unsuitable entities.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | metatag-n2499865-10.patch | 15.23 KB | damienmckenna |
Comments
Comment #1
damienmckennaComment #2
neovictor commentedstupid update, you idiots?
Comment #3
damienmckenna@neovictor: There's a code of conduct for working within the Drupal community, and having an account on drupal.org in the first place indicates you (should have) read it and indicated agreement to its standards. Your third comment for the 2 years and 4 months you've had an account, is clearly in violation of this. Please clean up your attitude.
Comment #4
damienmckennaThis makes a few small changes:
Comment #6
geerlingguy commentedGiving a general +1 here; there are a bunch of manual steps involved in upgrading to 1.5 while preserving former settings (e.g. individual content types need to be re-enabled in the /admin/config/search/metatags/settings page so they show properly on the Defaults page, etc. Hopefully the 1.6 release will help make the process a little more painless :)
Comment #7
damienmckennaLets see what the testbots think of this. I've resolved all of the test errors locally and added a new update script to manually enable the node, taxonomy term and user entity & bundles.
Comment #9
damienmckennaAH! If I run the tests using PHP 5.3 the tests fail, but with PHP 5.6 (my local default) the pass. At least it's easy for me to change the local default :)
Comment #10
damienmckennaAh! I worked out a flaw in my logic for hook_install(). It was skipping all entities that didn't have any bundles. However, when a site is first installed and node.module is installed there aren't any content types, ditto for taxonomy. So, what I had to deal with the three bundled entity types (node, taxonomy_term, user) separately and specifically enable them. I've also added hook_node_type_insert(), hook_node_type_delete(), hook_taxonomy_vocabulary_insert() and hook_taxonomy_vocabulary_delete() to update the variables accordingly.
Comment #11
damienmckennaGreen! Woot!
Comment #13
damienmckennaCommitted.