You are here

function hook_panels_pane_prerender in Panels 7.3

Fired before a panel is rendered.

Last chance to modify the pane before the keyword substitution runs and the pane is rendered.

Parameters

object $pane: Pane that will be rendered.

1 function implements hook_panels_pane_prerender()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

i18n_panels_panels_pane_prerender in i18n_panels/i18n_panels.module
Implements hook_panels_pane_prerender().
1 invocation of hook_panels_pane_prerender()
panels_renderer_standard::render_pane in plugins/display_renderers/panels_renderer_standard.class.php
Render a pane using its designated style.

File

./panels.api.php, line 214
Hooks provided by Panels.

Code

function hook_panels_pane_prerender($pane) {

  // Check if this pane has a custom title enabled.
  if (!empty($pane->configuration['override_title'])) {
    $translation_object = (object) array(
      'pid' => $pane->pid,
      'title' => $pane->configuration['override_title_text'],
    );
    $translation_object = i18n_string_object_translate('panels_pane_configuration', $translation_object);
    $pane->configuration['override_title_text'] = $translation_object->title;
  }
}