Closed proofoftom closed 9 years ago
@reynoldsalec you have time to check this out?
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 ;)
as do i
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.