You are here

function panels_panels_pane_content_alter in Fusion Accelerator 7

Same name and namespace in other branches
  1. 7.2 fusion_apply/modules/panels.fusion.inc \panels_panels_pane_content_alter()

Implements hook_panels_pane_content_alter().

Because of the way panels handles contextual links we can't use a contextual links handler.

Related topics

File

fusion_apply/modules/panels.fusion.inc, line 75
Provide skins handling for panels.module.

Code

function panels_panels_pane_content_alter(&$content, $pane, $display_args, $context) {
  if (user_access('edit skin settings')) {
    $element = 'pane__' . $pane->did . '__' . $pane->pid;
    $content->admin_links[] = array(
      'title' => t('Edit skin'),
      'href' => 'admin/appearance/fusion/edit/nojs/panels/' . $element . '/configure',
      'query' => drupal_get_destination(),
    );
  }
}