kalamuna / playbox

A playground for ambitious would-be code artists.
http://live-playbox.at.kalamuna.com/
GNU General Public License v2.0
5 stars 29 forks source link

#47 Continuity of Government #115

Closed proofoftom closed 9 years ago

proofoftom commented 9 years ago

47: This is a re-roll of @litwol's solution in #107 with the addition of a hook_enable in playbox_ntas.install that generates a demo Vice President, establishes the entity reference, and enables a NTAS testing mode which can be disabled in the Playbox Global Settings admin. This allows for the functionality to be tested simply by enabling the module and navigating to the front page where the Featured Battle Presidents should be replaced with a beautiful image of myself and the nickname "Demo".

There is an occasional bug in creating the demo content that occurs when enabling the playbox_ntas module the first time. It appears that the playbox_emergency feature dependency hasn't finished creating the necessary content type in time for playbox_ntas to instantiate it. I've added a features_rebuild() at the beginning of playbox_ntas.install's hook_enable() to circumvent this. If this error occurs however, I've found disabling and enabling the playbox_ntas module again rectifies the issue.

pirog commented 9 years ago

@reynoldsalec you have time to check this out?

reynoldsalec commented 9 years ago

Nice @tommycox, I think you brought this feature home! Tested out on my local and it works like a charm. I feel better knowing Playbox is now prepared for a major terrorist incident ;)

pirog commented 9 years ago

as do i