You are here

function hook_fieldable_panels_pane_content_type_edit_form_access_alter in Fieldable Panels Panes (FPP) 7

Allow other modules to modify access to the FPP CTools content type.

Parameters

bool $return: Value to determine if edit access is granted to FPP entity.

array $content_type: The CTools content type plugin.

array $subtype: The individual FPP entity being evaluated for edit access.

array $view_mode: The view mode of the FPP entity being evaluated for edit access.

1 invocation of hook_fieldable_panels_pane_content_type_edit_form_access_alter()
fieldable_panels_pane_content_type_edit_form_access in plugins/content_types/fieldable_panels_pane.inc
Callback for the 'edit' permission.

File

./fieldable_panels_panes.api.php, line 146
Hooks provided by the Fieldable Panels Panes module.

Code

function hook_fieldable_panels_pane_content_type_edit_form_access_alter(&$return, array $content_type, array $subtype, array $view_mode) {

  // For button and quote FPP bundles, deny edit access from Panels.
  if ($subtype['bundle'] == 'button' || $subtype['bundle'] == 'quote') {
    $return = FALSE;
  }
}