In the IPE users are able to "Save as @bundle_name default", if they have "Use the Panels In-Place Editor" and "@bundle_type @bundle_name: Administer Panelizer content". It would be really nice to disallow users to change the default panels.

I have tried to form_alter the "panels_ipe_edit_control_form", but I cant figure out how to set $form['buttons']['save_default']['#access'] = FALSE.

Comments

miroslavbanov’s picture

In my case, I want to disable the functionality regardless of permissions, as it adds confusion and is something I don't need. Here's a simple patch to have a global variable to disable that functionality.

damienmckenna’s picture

Issue summary: View changes
Status: Active » Needs review
lorique’s picture

Status: Needs review » Closed (duplicate)

Yeah this is a hackjob. Issue is a duplicate of https://drupal.org/node/2199859. I suggest we close this ticket and mark it as duplicate. Patch in the other ticket fixes your issue.