Created
December 20, 2011 19:16
-
-
Save elliotttf/1502817 to your computer and use it in GitHub Desktop.
Transaction comment
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This is a bit hacky, but here's why: node_save is wrapped in a | |
// transaction which means that our keeper info won't be written | |
// to the database until after everything in node_save finishes. | |
// That would be fine except for the fact that we're asynchronously | |
// interacting with the PuSH hub. When the hub calls back to Drupal | |
// the keeper info still hasn't been written to the database. | |
// To avoid the problem this causes we're making subscription requests | |
// on node load. Lord have mercy on my soul. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment