You are here

function flexiform_page_access in Flexiform 7

Access callback for flexiform pages.

1 call to flexiform_page_access()
flexiform_modal_page_access in ./flexiform.module
Access callback for modal pages.
1 string reference to 'flexiform_page_access'
FlexiformDisplayPageBase::hook_menu in includes/display/page.display.inc
Define the menu links

File

./flexiform.module, line 429
Module for the Flexiform system.

Code

function flexiform_page_access($flexiform, $display, $base_entity_id = NULL) {
  if (!is_object($flexiform)) {
    $flexiform = flexiform_load($flexiform);
  }
  if (!$flexiform) {
    return FALSE;
  }
  $context = array(
    'base_entity_id' => $base_entity_id,
  );
  return $flexiform
    ->getDisplay($display)
    ->access($context);
}