function flexiform_modal_page_wrapper in Flexiform 7
Page callback for flexiform pages that might be modals.
1 string reference to 'flexiform_modal_page_wrapper'
- FlexiformDisplayCreateModal::hook_menu in includes/
display/ add_modal.display.inc - Define the menu links
File
- ./
flexiform.pages.inc, line 29 - Page and page title callbacks for flexiform.
Code
function flexiform_modal_page_wrapper($flexiform, $display, $js = FALSE, $base_entity_id = NULL) {
if (!is_object($flexiform)) {
$flexiform = flexiform_load($flexiform);
}
if (!$flexiform) {
return drupal_not_found();
}
$context = array(
'base_entity_id' => $base_entity_id,
'js' => $js,
'args' => array_slice(func_get_args(), 4),
);
return $flexiform
->getDisplay($display)
->build($context);
}