While looking trough the code to figure out a way to fix #2051267: block does not get deleted if using custom machine name I found out that db_select is being called once for each nodeblock enabled content type. The code in nodeblock_block_info could be rewritten to only use one query.

I'm already working on a patch which I will add shortly

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

legolasbo’s picture

Status: Needs work » Needs review
FileSize
1.79 KB

Attached patch only uses one query to fetch all the required info from the db.

Johnny vd Laar’s picture

Status: Needs review » Fixed

Added your change here:
https://drupal.org/node/129257/commits

thanks for the help!

Status: Fixed » Closed (fixed)

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