Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We currently run a core hack to remove the per-feed aggregator blocks from the interface. We need that back because that page takes so long to save it falls over. :\
Comments
Comment #1
webchickTried and failed to use hook_block_info_alter() for this: #1550050: Removing blocks from hook_block_info_alter() leads to data loss
But in dinking around in Aggregator module, I noticed that it now has a new setting for "Number of items to show in block." If we loop through all the blocks and set this to 0 in an update hook, no more blocks! :)
Comment #2
webchickThe query is:
'UPDATE aggregator_feed SET block = 0'
Too tired to wrap this in an update hook tonight.
Comment #3
drummCommitted, along with a form alter to discourage new feeds from being added.
Comment #6
bpadaria CreditAttribution: bpadaria commentedThanks for sharing solution Webchick.
Your update query is very helpful.
I had to remove aggregator block as well as I have so many block feeds