Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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:
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.
Comment | File | Size | Author |
---|---|---|---|
#5 | panels-new-pane-alter-1985980-5.patch | 708 bytes | rahulbile |
#1 | panels-new-pane-alter-1985980-1.patch | 364 bytes | emattias |
Comments
Comment #1
emattias CreditAttribution: emattias commentedComment #2
retrodans CreditAttribution: retrodans commentedFYI implemented this patch with no difficulties, very greatful for its existance.
Thanks,
Dan
Comment #3
evgeniysolodkov CreditAttribution: evgeniysolodkov commentedHello, 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!
Comment #4
caschbre CreditAttribution: caschbre commentedI'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?
Comment #5
rahulbile CreditAttribution: rahulbile commentedPatch seems to be working fine for me. Attached is the patch against 7.x-3.x.
Comment #6
Chris Gillis CreditAttribution: Chris Gillis commented#5 works for me. Any chance of a commit?
Comment #7
skstarne CreditAttribution: skstarne commented#5 works great for me too.
Comment #8
Jackinloadup CreditAttribution: Jackinloadup commented#5 worked for my team. @sdboyer What else needs to be done to get this patch commited?
Comment #9
japerryJust an alter? sweet. Committed.