You are here

function hook_panels_pane_update in Panels 7.3

Fired before a changed pane is updated in the storage.

Parameters

object $pane: Pane that will be rendered.

1 function implements hook_panels_pane_update()

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_update in i18n_panels/i18n_panels.module
Implements hook_panels_pane_update().
1 invocation of hook_panels_pane_update()
panels_save_display in ./panels.module
Save a display object.

File

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

Code

function hook_panels_pane_update($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'],
    );
    $status = i18n_string_object_update('panels_pane_configuration', $translation_object);
  }
}