You are here

function hook_panelizer_access in Panelizer 7.3

Adjust access to the Panelizer administrative interface beyond the standard permissions options.

Parameters

string $op: The operation currently being performed.

string $entity_type: The type of entity to which the operation is related.

string|object $bundle: Either the entity's bundle name or the entity object itself, will vary depending upon how it is called.

string $view_mode: The view mode of the entity related to this operation.

object $entity: The entity that access is being checked for.

Return value

bool Whether or not the user has permission to perform this $op.

1 invocation of hook_panelizer_access()
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 95
Documentation for Panelizer's hooks.

Code

function hook_panelizer_access($op, $entity_type, $bundle, $view_mode, $entity) {
}