I'm the maintainer of Semantic Panels. I need to be able to alter newly created panes to allow site builders to set default styles.

My proposed solution is to add this in the panels_new_pane function:

<?php
  drupal_alter
('panels_new_pane', $pane);
?>

My use of this drupal_alter is related to #874002: Option to choose a default style for all new panes but this alter could be used for other stuff also, hence the separate issue.

Files: 
CommentFileSizeAuthor
#5 panels-new-pane-alter-1985980-5.patch708 bytesrahulbile
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]
#1 panels-new-pane-alter-1985980-1.patch364 bytesemattias

Comments

Status:Active» Needs review
StatusFileSize
new364 bytes

FYI implemented this patch with no difficulties, very greatful for its existance.

Thanks,
Dan

Hello, Mattias!
I'm wondering if there any progress on making semantic style default for new panes. I've applyed this patch and didn't see any changes - No style is still default for new panes. I use the latest dev of Semantic Panels.
Anyway, thanks for great module, it makes life much easier!

I'm successfully able to set the new pane style using this... however I haven't been able to figure out how to kick off the settings form for that new style. Any suggestions?

Issue summary:View changes
Status:Needs review» Reviewed & tested by the community
StatusFileSize
new708 bytes
PASSED: [[SimpleTest]]: [MySQL] 0 pass(es).
[ View ]

Patch seems to be working fine for me. Attached is the patch against 7.x-3.x.