Reading
For a Backdrop CMS site I'm currently working on, I needed to create a node programatically (i.e. via some PHP code, as opposed to the UI). Generally when I need to do something in Backdrop, I'll search for similar solutions in Drupal 7 and then migrate them over (Backdrop still has some catching up to do in the 'online help and tutorials' department; hence this blog post).
So I went looking for how to create nodes programatically in Drupal 7, and there were plently of results. The answer is basically to create an object or array of values (your 'node'), then run it through node_save()
. Unfortunately each answer had a different idea about exactly what values you should initially assign to your 'node'. Wanting a more bullet-proof solution, I kept looking and finally saw a suggestion someone made to check out the Devel Generate module. It creates nodes programatically, so it has the code to do just this. Since that module already exists in Backdrop, I had a look.
Devel Generate creates nodes by:
All too revealing of how the system works ... how the talented former chief of the FT, capitalism’s house journal, was in thrall to ‘movers and shakers’
Even a brilliant newspaper editor can undersell a good story on the front page. At the start of Lionel Barber’s account of the world from his perspective as editor of the Financial Times between 2005 and 2020, there is an extensive list of dramatis personae, almost all of them male. (“One day,” he writes later, “I will deal with the alpha male problem, but not today.”) The players are broken down into their categories: politics, business and finance, royalty, journalism and diplomacy. The heart sinks – if journalism sits so easily in such a cast list, how can it do its job of comforting the afflicted and afflicting the comfortable?
A video recording of my 2020 Cunningham Lecture, "Do We Need Intellectuals", is now online, open access, here:
https://www.youtube.com/watch?v=_ycEQDEFyfo&feature=youtu.be
All welcome!
Suggesting Britain could sign the withdrawal agreement with its fingers crossed makes perfect sense for a government of liars
Everybody knows Boris Johnson can lie for England. To his supporters, it was one of his best assets. They believed he could bamboozle the European Union into giving him the only Brexit deal that is really acceptable – one that gives Britain all the advantages of being in the EU without any of the botheration of being a member. The problem is that congenital mendacity isn’t just for foreigners. If you lie for England, you will also lie to England.
This week, these two streams of fabrication finally became one. In openly admitting that it signed the withdrawal agreement with the EU in bad faith, Johnson’s Vote Leave government also implicitly confessed that it lied wholesale to the electorate in December’s general election. The cross-contamination of domestic politics by the deceit that is Brexit’s DNA is now complete.