Fix bug in hook_block_view().
Issue #1350364 by valderama: Added ability to disable modules.
The code compatible with the Drupal 7 version of Aegir Hostmaster
The Drupal 7 version of Aegir Hostmaster
adding few bug fixes