Last active
April 4, 2016 12:08
-
-
Save junaidpv/88cacddbab84534aceffa19acdf1d9df to your computer and use it in GitHub Desktop.
Pass renderer object reference while allowing to alter pane links. That is essentila for several cases.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/plugins/display_renderers/panels_renderer_editor.class.php b/plugins/display_renderers/panels_renderer_editor.class.php | |
| index a814eb7..055fc7f 100644 | |
| --- a/plugins/display_renderers/panels_renderer_editor.class.php | |
| +++ b/plugins/display_renderers/panels_renderer_editor.class.php | |
| @@ -464,7 +464,7 @@ class panels_renderer_editor extends panels_renderer_standard { | |
| // Allow others to add/remove links from pane context menu. | |
| // Grouped by 'top', 'style', 'visibility', 'lock', 'cache' and 'bottom' | |
| - drupal_alter('get_pane_links', $links, $pane, $content_type); | |
| + drupal_alter('get_pane_links', $links, $pane, $content_type, $this); | |
| $dropdown_links = $links['top']; | |
| $category_labels = array( |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment