function menu_minipanels_panels in Menu Minipanels 6
Same name and namespace in other branches
- 7 menu_minipanels.module \menu_minipanels_panels()
Stores the generated output of all rendered minipanels. Will later be used by @menu_minipanels_preprocess_page to display the generated output.
Parameters
Int $mlid - the menu item id that needs the minipanel rendered.:
String $minipanel_name - the name of the minipanel to render.:
2 calls to menu_minipanels_panels()
- menu_minipanels_preprocess_page in ./
menu_minipanels.module - Implements template_preprocess_page().
- _menu_minipanels_include in ./
menu_minipanels.module - When a minipanel menu item is detected by our theme interception functions this function is used to add the appropriate configuration javascript and minipanel output.
File
- ./
menu_minipanels.module, line 430 - Allows an administrator to specify a minipanel to be associated with a Drupal menu item. When that menu item is hovered or clicked (as per config), the minipanel content will be shown using the qTip javascript library.
Code
function menu_minipanels_panels($mlid = NULL, $minipanel_name = NULL) {
static $output = '';
if ($minipanel_name != NULL) {
$output .= '<div class="menu-minipanels menu-minipanel-' . $mlid . '">' . _menu_minipanels_render_panel($minipanel_name) . '</div>';
}
else {
return $output;
}
}