You are here

function hook_panelizer_access_alter in Panelizer 7.3

Allow modules to alter the defined panelizer access definitions.

Parameters

array $panelizer_access: An array of panelizer access options. If any are true, this will return true. Set $panelizer_access equal to an empty array to return false.

$options: drupal_alter() can only handle so many parameters. In order to pass the same parameters that are passed in hook_panelizer_access, the params are placed into an $options array. Expected keys are:

  • op
  • entity_type
  • bundle
  • view_mode
  • entity
1 invocation of hook_panelizer_access_alter()
PanelizerEntityDefault::panelizer_access in plugins/entity/PanelizerEntityDefault.class.php
Determine if the user has access to the panelizer operation for this type.

File

./panelizer.api.php, line 114
Documentation for Panelizer's hooks.

Code

function hook_panelizer_access_alter(&$panelizer_access, $options) {
}