You are here

function flexiform_page_wrapper in Flexiform 7

Page callback for flexiform submission pages.

2 string references to 'flexiform_page_wrapper'
FlexiformDisplayPageBase::hook_menu in includes/display/page.display.inc
Define the menu links
FlexiformDisplayUserCategory::hook_menu_alter in includes/display/user_category.display.inc
Define the menu links

File

./flexiform.pages.inc, line 10
Page and page title callbacks for flexiform.

Code

function flexiform_page_wrapper($flexiform, $display, $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,
    'args' => array_slice(func_get_args(), 3),
  );
  return $flexiform
    ->getDisplay($display)
    ->build($context);
}