You are here

function fieldable_panels_panes_field_extra_fields_display_alter in Fieldable Panels Panes (FPP) 7

Implements hook_field_extra_fields_display_alter().

File

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

Code

function fieldable_panels_panes_field_extra_fields_display_alter(&$displays, $context) {
  if ($context['entity_type'] == 'fieldable_panels_pane' && $context['view_mode'] == 'full') {

    // Hide display of the title field on the 'full' view mode (because it gets
    // displayed as the Pane title). Ensure the 'title' key exists, since some
    // other modules may have remove it. This is the case of the Title module
    // for example.
    if (isset($displays['title'])) {
      $displays['title']['visible'] = FALSE;
    }
  }
}