'system', 'delta' => 'main', 'theme' => 'garland', 'status' => 1, 'weight' => 0, 'region' => 'content', 'pages' => '', 'cache' => -1, ), array( 'module' => 'user', 'delta' => 'login', 'theme' => 'garland', 'status' => 1, 'weight' => 0, 'region' => 'sidebar_first', 'pages' => '', 'cache' => -1, ), array( 'module' => 'system', 'delta' => 'navigation', 'theme' => 'garland', 'status' => 1, 'weight' => 0, 'region' => 'sidebar_first', 'pages' => '', 'cache' => -1, ), array( 'module' => 'system', 'delta' => 'management', 'theme' => 'garland', 'status' => 1, 'weight' => 1, 'region' => 'sidebar_first', 'pages' => '', 'cache' => -1, ), array( 'module' => 'system', 'delta' => 'help', 'theme' => 'garland', 'status' => 1, 'weight' => 0, 'region' => 'help', 'pages' => '', 'cache' => -1, ), ); $query = db_insert('block')->fields(array('module', 'delta', 'theme', 'status', 'weight', 'region', 'pages', 'cache')); foreach ($values as $record) { $query->values($record); } $query->execute(); // Enable default permissions for system roles. user_role_grant_permissions(DRUPAL_ANONYMOUS_RID, array('access content', 'use text format 1')); user_role_grant_permissions(DRUPAL_AUTHENTICATED_RID, array('access content', 'access comments', 'post comments', 'post comments without approval', 'use text format 1')); }