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)?

Comments

merlinofchaos’s picture

Assigned: Unassigned » merlinofchaos
Status: Active » Fixed

*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.

Anonymous’s picture

Status: Fixed » Closed (fixed)