I want to update the configuration (weight, pages, region) of some blocks within an update function. I know I could do this directly inside the database. Is there a better way of doing this? I scanned http://api.drupal.org, but I didn't find anything like
Do you have any idea?