You are here

function flexiform_page_title in Flexiform 7

Title Callback for Flexiform Submission Pages.

2 string references to 'flexiform_page_title'
FlexiformDisplayCreateModal::hook_menu in includes/display/add_modal.display.inc
Define the menu links
FlexiformDisplayPageBase::hook_menu in includes/display/page.display.inc
Define the menu links

File

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

Code

function flexiform_page_title($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)
    ->title($context);
}