Talking Drupal

Talking Drupal #510 - Drupal Hooks: Drop 'em like they're hot


Listen Later

Today we are talking about Drupal Hooks, why they got changed in core, and what to do now with guest Karoly Négyesi better known as Chx. We'll also cover Media Folders as our module of the week.

For show notes visit: https://www.talkingDrupal.com/510

Topics
  • Deep Dive into Drupal Hooks
  • The Evolution of Drupal Hooks
  • Challenges and Solutions in Hook Conversion
  • Community Involvement and Contributions
  • The Future of Drupal Hook System
  • Introduction to Procedural Hooks
  • Understanding Theme Hooks
  • Complexities of Preprocess Hooks
  • Converting Hooks to Object-Oriented
  • Impact on Contributed Modules
  • Challenges in Core Conversion
  • Future of Drupal Hooks
  • Lightning Round and Conclusion
Resources
  • Hooks becoming OOP
  • Convert everything everwhere all at once
    • Conversion script
    • Conversion patches
  • Ordering hooks OOP
  • Preprocess hooks
  • Render API change
  • 2009 issue for form api ungrokable
  • 2007 change for calling themes hook
  • Giant issue with all of the hook related links
  • Longest hook in core: entity_query_tag__entity_test_mulrev__entity_query_entity_test_mulrev_alter_tag_test_alter
Guests

Károly Negyesi - ghost-of-drupal-past

Hosts

Nic Laflin - nLighteneddevelopment.com nicxvan John Picozzi - epam.com johnpicozzi Martin Anderson-Clutz - mandclu.com mandclu

MOTW Correspondent

Martin Anderson-Clutz - mandclu.com mandclu

  • Brief description:
    • Have you ever wanted to have your Drupal site's media assets presented in a UI that evokes the hierarchy of a filesystem? There's a module for that.
  • Module name/project name:
    • Media Folders
  • Brief history
    • How old: created in Apr 2025 by João Mauricio (jmauricio)
    • Versions available: 1.0.3 which supports Drupal 10.3 and 11
  • Maintainership
    • Actively maintained
    • Security coverage
    • Test coverage
    • Number of open issues: 9 open issues, 2 of which are bugs, although one was just fixed
  • Usage stats:
    • 61 sites
  • Module features and usage
    • The module mimics a file structure by associating media entities with a taxonomy hierarchy
    • It then provides an intuitive, drag-and-drop UI to move items between locations, drag in new items, or even search within a particular "folder", including a recursive search
    • When you drag in files, it uses "smart" logic to automatically assign files to Media bundles
    • It provides a form display widget, a view display widget, a CKEditor plugin, and it's compatible with other filesystem modules, like S3 File System
    • This kind of interface is a requirement I've seen in RFPs by companies looking for a new CMS, so having this available as a drop-in solution
...more
View all episodesView all episodes
Download on the App Store

Talking DrupalBy Talking Drupal Hosts

  • 4.9
  • 4.9
  • 4.9
  • 4.9
  • 4.9

4.9

28 ratings


More shows like Talking Drupal

View all
Freakonomics Radio by Freakonomics Radio + Stitcher

Freakonomics Radio

32,111 Listeners

Planet Money by NPR

Planet Money

30,667 Listeners

Marketplace by Marketplace

Marketplace

8,765 Listeners

Odd Lots by Bloomberg

Odd Lots

1,896 Listeners

The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

292 Listeners

Pivot by New York Magazine

Pivot

9,529 Listeners

The Quanta Podcast by Quanta Magazine

The Quanta Podcast

523 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

983 Listeners

Interesting Times with Ross Douthat by New York Times Opinion

Interesting Times with Ross Douthat

7,164 Listeners

Cautionary Tales with Tim Harford by Pushkin Industries

Cautionary Tales with Tim Harford

5,180 Listeners

The Prof G Pod with Scott Galloway by Vox Media Podcast Network

The Prof G Pod with Scott Galloway

5,533 Listeners

Hard Fork by The New York Times

Hard Fork

5,472 Listeners

Latent Space: The AI Engineer Podcast by swyx + Alessio

Latent Space: The AI Engineer Podcast

95 Listeners

Better Offline by Cool Zone Media and iHeartPodcasts

Better Offline

556 Listeners

The Wirecutter Show by The New York Times

The Wirecutter Show

1,143 Listeners