Commit 28f907c4 authored by Dries's avatar Dries

- Patch #103717 by profix88: unable to edit blocks for administration theme when it is not enabled.

parent aa3daa32
......@@ -88,17 +88,15 @@ function block_menu($may_cache) {
'type' => MENU_LOCAL_TASK);
$default = variable_get('theme_default', 'garland');
foreach (list_themes() as $key => $theme) {
if ($theme->status) {
$items[] = array(
'path' => 'admin/build/block/list/'. $key,
'title' => t('!key settings', array('!key' => $key)),
'callback' => 'drupal_get_form',
'callback arguments' => array('block_admin_display', $key),
'access' => user_access('administer blocks'),
'type' => $key== $default ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK,
'weight' => $key == $default ? -10 : 0,
);
}
$items[] = array(
'path' => 'admin/build/block/list/'. $key,
'title' => t('!key settings', array('!key' => $key)),
'callback' => 'drupal_get_form',
'callback arguments' => array('block_admin_display', $key),
'access' => user_access('administer blocks'),
'type' => $key == $default ? MENU_DEFAULT_LOCAL_TASK : MENU_LOCAL_TASK,
'weight' => $key == $default ? -10 : 0,
);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment