You are here

function fieldable_panels_pane_is_page in Fieldable Panels Panes (FPP) 7

Returns whether the current page is the preview view of the passed-in pane.

Parameters

object $pane: A fieldable panel pane object.

Return value

bool TRUE if this is a full pane page view, otherwise FALSE.

1 call to fieldable_panels_pane_is_page()
PanelsPaneController::view in includes/PanelsPaneController.class.php
Display a given FPP object.

File

./fieldable_panels_panes.module, line 1513
Maintains an entity that appears as panel pane content.

Code

function fieldable_panels_pane_is_page($pane) {
  $page_page = menu_get_object('fieldable_panels_panes', 4);
  return !empty($page_page) ? $page_page->fpid == $pane->fpid : FALSE;
}