In a project I missed the ability to act on changes to panelizer defaults.

I added a patch for acting when panelizer defaults get deleted.

Of course hooks for other events is also be desirable.

At least this is a starting point to see if the idea is usable for someone else.

Please notice the patch is for 7.x-2.x-dev (because that is the version I'm currently working with). The patch also applies to the 7.x-3.x-dev branch (with minor offsets).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arnested’s picture

Status: Active » Needs review
FileSize
2.19 KB
arnested’s picture

I just realized the two functions panelizer_default_settings_page() and panelizer_export_export_callback() where not having the same functionality and couldn't be merged.

Improved patch.

arnested’s picture

Issue summary: View changes

Updated issue summary. Fixed spelling.

arnested’s picture

Issue summary: View changes
DamienMcKenna’s picture

Version: 7.x-2.x-dev » 7.x-3.x-dev
Status: Needs review » Needs work

This needs some updates & fixes:

  • It needs to be rerolled for v3 (v2 is no longer supported), especially the API docs as there's now a panelizer.api.php file.
  • The change to panelizer_export_delete_callback() needs to be fixed as there is no $panelizer variable in it.
mglaman’s picture

Status: Needs work » Needs review
FileSize
1.63 KB

Re-roll against 3.x, fixes the export object module invoke call.

DamienMcKenna’s picture

FileSize
1.73 KB

Minor tweaks to the comments.

DamienMcKenna’s picture

Status: Needs review » Fixed

Committed. Thank you both.

DamienMcKenna’s picture

Issue tags: +SprintWeekend2015

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.