Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commented*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.
Comment #2
(not verified) CreditAttribution: commented