You are here

function hook_fieldable_panels_pane_view in Fieldable Panels Panes (FPP) 7

Act on a fieldable panels pane that is being assembled before rendering.

Parameters

object $panels_pane: The fieldable panels pane that is being assembled for rendering.

string $view_mode: The $view_mode parameter.

string $langcode: The language code used for rendering.

See also

hook_entity_view()

1 invocation of hook_fieldable_panels_pane_view()
PanelsPaneController::buildContent in includes/PanelsPaneController.class.php
Builds a structured array representing the fieldable panel pane's content.

File

./fieldable_panels_panes.api.php, line 85
Hooks provided by the Fieldable Panels Panes module.

Code

function hook_fieldable_panels_pane_view($panels_pane, $view_mode, $langcode) {
  $panels_pane->content['my_additional_field'] = array(
    '#markup' => $additional_field,
    '#weight' => 10,
    '#theme' => 'mymodule_my_additional_field',
  );
}