Related Content
Drupal 11: Object Oriented Hooks And Hook Service Classes
Hooks are used in Drupal to allow modules and themes to listen to or trigger different sorts of events in a Drupal system. During these events Drupal will pause and ask if any modules want to have any say in the event that is currently being triggered.
LocalGov Drupal Camp 2025
LocalGov Drupal Camp 2025 was held in The Abbey Community Centre (near Westminster Abbey in London) on July 3rd 2025. I travelled down (despite the English rail network's attempts to the contrary) for the day as an attendee.
DrupalCamp England 2025
The first DrupalCamp in England was held this weekend (1st March 2025) in Cambridge. I drove down on the Friday with Chris Maiden to attend (and speak!) at the event.
We arrived early at the event and and started the day with a much needed coffee (or two) and started chatting with the other attendees.
Drupal 11: Creating Custom Queues
Creating queues using the core queue classes in Drupal is fairly straightforward. You just need a mechanism of adding data to the queue and a worker to process that data.
Drupal 11: Using Data Transfer Objects With The Queue API
When writing data to the queue database system Drupal will convert the information to a string using the PHP serialize() function. When the information is pulled out of the database the queue system will unserialize() the data to convert it back into the original information.
Drupal 11: The Queues API
I've talked a lot about the Batch API in Drupal recently, and I've mentioned that it is built upon the Queue API, but I haven't gone any deeper than that. I wrote about the Queues API in Drupal 7, but thought I would bring my understanding up to date.
Comments
Submitted by Anonymous on Fri, 01/28/2011 - 09:32
PermalinkExtremely helpful tip -- thanks for sharing. I spent ages mucking around with this before realizing that delay() isn't available in drupal 6.x...
Submitted by dotsam on Tue, 03/01/2011 - 02:19
PermalinkAdd new comment