Skip to content

Instantly share code, notes, and snippets.

@johnrobertwilson
Created June 27, 2012 20:19
Show Gist options
  • Save johnrobertwilson/3006603 to your computer and use it in GitHub Desktop.
Save johnrobertwilson/3006603 to your computer and use it in GitHub Desktop.
Dashboard
cache_clear_all();
$block_records = array(
array(
'module' => 'system',
'delta' => 'main',
'theme' => 'seven',
'visibility' => 1,
'region' => 'dashboard_inactive',
'status' => 1,
'pages' => '',
'cache' => -1,
),
array(
'module' => 'epa_admin',
'delta' => 'epa-admin-pending-action',
'theme' => 'seven',
'visibility' => 1,
'region' => 'dashboard_main',
'status' => 1,
'pages' => '',
'cache' => -1,
),
array(
'module' => 'epa_admin',
'delta' => 'epa-admin-create-new-content',
'theme' => 'seven',
'visibility' => 1,
'region' => 'dashboard_sidebar',
'status' => 1,
'pages' => '',
'cache' => -1,
),
array(
'module' => 'epa_admin',
'delta' => 'epa-admin-current-user-og-groups',
'theme' => 'seven',
'visibility' => 1,
'region' => 'dashboard_sidebar',
'status' => 1,
'pages' => '',
'cache' => -1,
),
array(
'module' => 'epa_admin',
'delta' => 'epa-admin-my-files',
'theme' => 'seven',
'visibility' => 1,
'region' => 'dashboard_sidebar',
'status' => 1,
'pages' => '',
'cache' => -1,
),
);
foreach ($block_records as $block) {
drupal_write_record('block', $block);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment