Unneeded $custom_theme set in block_admin_display_form
dvessel - February 11, 2008 - 19:16
| Project: | Drupal |
| Version: | 7.x-dev |
| Component: | block.module |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs work |
Jump to:
Description
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
| Attachment | Size |
|---|---|
| block_form_redundant_custom_theme.patch | 1.29 KB |

#1
Patch no longer applied.