Drupal Blocks and Contextual Menus
All blog entries reflect the opinions of the author and have not been expressly endorsed by the Ivan Allen College of Liberal Arts or the Georgia Institute of Technology.
Time for a tech-heavy post about making Contextual Menus work even better for blocks generated by a custom module.
Why does this matter? If your block is displaying information pulled from elsewhere in your Drupal ecosystem, it's very helpful if your site's content manager can easily get to the content that drives that block. Otherwise, it becomes the guessing game of "Where did this content come from?", especially when months or years have passed since the module was built.
The real beauty of this technique comes when you have a number of custom module-generated blocks on a landing page, and you can then hover over that contextual menu on any of them and jump right to the data source. Suddenly, maintaining the data on that page has become ten times easier than it was before.