diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-12-18 21:49:39 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-12-18 21:49:39 +0000 |
commit | 28f907c46a5ef43303b65b2caa176e68c3193aa9 (patch) | |
tree | 63ce01b98178e5b8b2b1e0a4361f22cdf1b75aa4 | |
parent | aa3daa3256799f9e1d0206ab1e5c6be3284303e7 (diff) | |
download | brdo-28f907c46a5ef43303b65b2caa176e68c3193aa9.tar.gz brdo-28f907c46a5ef43303b65b2caa176e68c3193aa9.tar.bz2 |
- Patch #103717 by profix88: unable to edit blocks for administration theme when it is not enabled.
-rw-r--r-- | modules/block/block.module | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/modules/block/block.module b/modules/block/block.module index 4c208f889..289bc4964 100644 --- a/modules/block/block.module +++ b/modules/block/block.module @@ -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, + ); } } |