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.
Hi. after enable this them i get below error
Fatal error: Call to undefined function panels_mini_block_view() in /sites/all/themes/oa_radix/template.php on line 70
Comments
Comment #1
ericrrossSolved. There isn't a function panels_mini_block_view().
Embed a mini panel | Thomas Lemaire
thomas.lemaire.name/snippet/embed-mini-panel
$mini_panel = module_invoke('panels_mini', 'block_view', 'minipanel_machine_name');. // or panels_mini_block_view('minipanel_machine_name'); ...
In /profiles/openatrium/themes/oa_radix/template.php change after
line 112 }
//Use module_invoke syntax as noted by Thomas Lemaire
//$mini_panel = module_invoke('panels_mini', 'block_view', 'minipanel_machine_name');
//$toolbar = panels_mini_block_view('oa_toolbar_panel');
$toolbar = module_invoke('panels_mini', 'block_view', 'oa_toolbar_panel');
$vars['oa_toolbar_panel'] = isset($toolbar) ? $toolbar['content'] : '';
//$footer = panels_mini_block_view('oa_footer_panel');
$footer = module_invoke('panels_mini', 'block_view', 'oa_footer_panel');
now line 120 $vars['oa_footer_panel'] = isset($footer) ? $footer['content'] : '';