Hi everybody,

Do you know how it is possible to render a mini-panel (with access rules specified in the mini-panel UI for example) directly in my module code?

I would like to run something like : mini_panel_render_content($mini-panel_id).

Thank you for your help!

Comments

merlinofchaos’s picture

Status: Active » Fixed

try $output = panels_mini_block('view', 'mini-panel-name');

It'll render like a block, so it'll return an array with 'subject' and 'content' like any block. You can run it through theme('block') if you want full block output, or just use the content.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Vote_Sizing_Steve’s picture

Any suggestions to do the same in drupal 7?