It looks like it was a sloppy copy and paste.
block_admin_display sets the global $custom_theme but block_admin_display_form does it again.
The only function calling block_admin_display_form is block_admin_display so it should be removed. Also removed init_theme since _block_rehash initializes it.
Patch applies to both 6 & 7.
http://api.drupal.org/api/function/block_admin_display/6
http://api.drupal.org/api/function/block_admin_display_form/6
| Comment | File | Size | Author |
|---|---|---|---|
| block_form_redundant_custom_theme.patch | 1.29 KB | dvessel |
Comments
Comment #1
lilou commentedPatch no longer applied.
Comment #2
quicksketchThis patch is no longer necessary now that #553944: Define hook_menu_get_item_alter() as a reliable hook that runs before the page is doomed has been committed.