There doesn't appear to be a function "dashboard_get_block()"
icenogle - November 16, 2005 - 03:43
| Project: | Dashboard |
| Version: | 4.6.x-1.x-dev |
| Component: | Documentation |
| Category: | bug report |
| Priority: | normal |
| Assigned: | merlinofchaos |
| Status: | closed |
Jump to:
Description
The docs say that to put a block in a panel, you use this function:
dashboard_get_block($modulename, $delta, $id=''')
When I tried it, I got:
Fatal error: Call to undefined function dashboard_get_block() in C:\htdocs\includes\common.inc(1857) : eval()'d code on line 3
Looking in dashboard.module, there doesn't seem to be such a function. There is a function "n_block()", and when I called this function, it seemed to work.
Is the doc ahead of the code, or is there something I don't understand (which is probably the case)?

#1
*cough*
My fault, I was hoping nobody would catch this. I noticed that I must've accidentally screwed that up before my last checkin. I caught it and checked in new code but apparently too late.
You can fix this by either downloading the most current one, or manually editing n_block into dashboard_get_block in the code.
Mildly embarassing, really. I think I'd been searching for dashboard_get and so it was hilited, and I just didn't notice that I'd hit a key. Made a minor fix elsewhere and checked it in...whups.
#2