Simple request with a simple patch, it looks like 6.x-1.3 had more access checks on the available blocks, so to reproduce the functionality and to add the ability to have custom modules modify the list of available blocks I simply want to add a drupal_alter() to pass the $available_blocks array to any other modules before the items are rendered.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Deciphered’s picture

Status: Active » Needs review
FileSize
439 bytes

Patch.

drumm’s picture

Version: 6.x-3.x-dev » 7.x-2.x-dev
Issue summary: View changes

Still applies to the 7.x-2.x branch, which is maintained. And I think this might be valid D7 code. Needs testing.

drumm’s picture

Status: Needs review » Patch (to be ported)
Anybody’s picture

Status: Patch (to be ported) » Reviewed & tested by the community

I can confirm this still works on 7.x-2.x-dev (and stable) and still makes a lot of sense. RTBC!

drumm’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review, committed!

  • drumm committed 35982fe on 7.x-2.x authored by Deciphered
    Issue #1781796 by Deciphered, drumm, Anybody: Allow modules to alter...
Anybody’s picture

This should also be ported to the Drupal 8 / 9 version. Quite useful feature.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.