Posted by joachim on October 16, 2010 at 5:10pm
6 followers
| Project: | Drupal core |
| Version: | 7.x-dev |
| Component: | menu system |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
The block_callback field in the {menu_router} table seems to be a curious leftover from pre-D6 at least.
It's only used in system_main_admin_page():
if ($item['block_callback'] && function_exists($item['block_callback'])) {
$function = $item['block_callback'];
$block['content'] .= $function();
}There's not a single item in my menu_router table that has this set. On D6, there's only one, and it's not even relevant to system_main_admin_page()!
I reckon we can get rid of this.
Comments
#1
Let's see what the testbot makes of this ;)
#2
Testbot status 'ignored'? Is that because this is on 8? Hmm let's try it on 7.
#3
tests pass. kill it.
#4
Here's a patch that removes it all.
#5
Needs an update function to drop the column, no?
#6
So we do.
#7
Looks ready to me.
#8
nice.
#9
Committed to CVS HEAD. Thanks.
#10
It's not all the way gone yet...
#11
Now it is :)
By the way, is the original commit here an API change? It seems like it sort of is, although I'm not convinced this functionality worked as intended in D7 anymore anyway.
#12
RTBC.
#13
Committed to CVS HEAD. Thanks.
#14
Automatically closed -- issue fixed for 2 weeks with no activity.